1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

gpg: Clean up dangling agent_open and agent_closed declarations.

* g10/keydb.h: Remove agent_open, agent_close declarations/
* g10/migrate.c: #include <unistd.h> for access()

--
agent_open() is only defined statically in common/simple-pw-query.c,
it is neither used nor referenced anywhere else.  agent_close doesn't
exist anywhere.  The removal of these declarations removes an
unecessary inclusion of libassuan.h.

migrate.c was relying on keydb.h -> libassuan.h -> unistd.h for the
declaration of access(), so we now handle that explicitly instead.
This commit is contained in:
Daniel Kahn Gillmor 2016-02-11 07:08:55 -05:00 committed by Werner Koch
parent e1ceff1676
commit 813df2fe66
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 1 additions and 4 deletions

View file

@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <assert.h>
#include "gpg.h"