diff options
author | Daniel Kahn Gillmor <[email protected]> | 2016-02-11 12:08:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-02-18 11:11:16 +0000 |
commit | 813df2fe6656e55bea4d0be07cc964a140218412 (patch) | |
tree | e80e3f9027432cb7dfc45cf37fdf1c853f82fdc5 /g10/migrate.c | |
parent | w32: Make scdaemon build again due to libusb problem. (diff) | |
download | gnupg-813df2fe6656e55bea4d0be07cc964a140218412.tar.gz gnupg-813df2fe6656e55bea4d0be07cc964a140218412.zip |
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.
Diffstat (limited to 'g10/migrate.c')
-rw-r--r-- | g10/migrate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/migrate.c b/g10/migrate.c index 96ca5c27d..48cbdd08f 100644 --- a/g10/migrate.c +++ b/g10/migrate.c @@ -22,6 +22,7 @@ #include <stdlib.h> #include <string.h> #include <errno.h> +#include <unistd.h> #include <assert.h> #include "gpg.h" |