aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-05-30 04:00:26 +0000
committerDavid Shaw <[email protected]>2003-05-30 04:00:26 +0000
commit03c53702fbf260d234570504062547ae641783f8 (patch)
tree1bc5d3a234c18d5cba196b57a2e472a7ab206653
parent* NEWS: Document --gnupg and the deprecation of --no-openpgp and (diff)
downloadgnupg-03c53702fbf260d234570504062547ae641783f8.tar.gz
gnupg-03c53702fbf260d234570504062547ae641783f8.zip
* gpgkeys_hkp.c, gpgkeys_ldap.c: Include extern references for optarg and
optind since there is no guarantee that any header file will include them. Standards? We don't need no stinkin' standards!
-rw-r--r--keyserver/ChangeLog7
-rw-r--r--keyserver/gpgkeys_hkp.c3
-rw-r--r--keyserver/gpgkeys_ldap.c3
3 files changed, 13 insertions, 0 deletions
diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog
index 7f63135ee..74f949395 100644
--- a/keyserver/ChangeLog
+++ b/keyserver/ChangeLog
@@ -1,3 +1,10 @@
+2003-05-29 David Shaw <[email protected]>
+
+ * gpgkeys_hkp.c, gpgkeys_ldap.c: Include extern references for
+ optarg and optind since there is no guarantee that any header file
+ will include them. Standards? We don't need no stinkin'
+ standards!
+
2003-05-28 David Shaw <[email protected]>
* gpgkeys_hkp.c, gpgkeys_ldap.c: #include <getopt.h> if it is
diff --git a/keyserver/gpgkeys_hkp.c b/keyserver/gpgkeys_hkp.c
index fc3943eaa..ab766b50e 100644
--- a/keyserver/gpgkeys_hkp.c
+++ b/keyserver/gpgkeys_hkp.c
@@ -33,6 +33,9 @@
#include "http.h"
#include "keyserver.h"
+extern char *optarg;
+extern int optind;
+
#define GET 0
#define SEND 1
#define SEARCH 2
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c
index aad578cfb..f0015ff53 100644
--- a/keyserver/gpgkeys_ldap.c
+++ b/keyserver/gpgkeys_ldap.c
@@ -38,6 +38,9 @@
#include "util.h"
#endif
+extern char *optarg;
+extern int optind;
+
#define GET 0
#define SEND 1
#define SEARCH 2