summaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_http.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2005-01-18 12:16:10 +0100
committerWerner Koch <wk@gnupg.org>2005-01-18 12:16:10 +0100
commit02a85a958c11475d86614dfa9fb305b75a029910 (patch)
tree88e7c39e98f9bbf4873b622d1d58b9dd581fc24a /keyserver/gpgkeys_http.c
parent(public_key_list): Do a trustdb staleness check before (diff)
downloadgnupg2-02a85a958c11475d86614dfa9fb305b75a029910.tar.xz
gnupg2-02a85a958c11475d86614dfa9fb305b75a029910.zip
* gpgkeys_curl.c: s/MAX_PATH/URLMAX_PATH/g to avoid a clash with
the W32 defined macro. Removed unneeded initialization of static variables. * gpgkeys_http.c: Ditto. * ksutil.h: s/MAX_PATH/URLMAX_PATH/.
Diffstat (limited to 'keyserver/gpgkeys_http.c')
-rw-r--r--keyserver/gpgkeys_http.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/keyserver/gpgkeys_http.c b/keyserver/gpgkeys_http.c
index b89f5d3f8..866cb037a 100644
--- a/keyserver/gpgkeys_http.c
+++ b/keyserver/gpgkeys_http.c
@@ -38,8 +38,12 @@ extern int optind;
static int verbose=0;
static unsigned int http_flags=0;
-static char auth[MAX_AUTH+1]={'\0'},host[MAX_HOST+1]={'\0'},proxy[MAX_PROXY+1]={'\0'},port[MAX_PORT+1]={'\0'},path[MAX_PATH+1]={'\0'};
-static FILE *input=NULL,*output=NULL,*console=NULL;
+static char auth[MAX_AUTH+1];
+static char host[MAX_HOST+1];
+static char proxy[MAX_PROXY+1];
+static char port[MAX_PORT+1];
+static char path[URLMAX_PATH+1];
+static FILE *input,*output,*console;
#ifdef __riscos__
#define HTTP_PROXY_ENV "GnuPG$HttpProxy"
@@ -231,9 +235,9 @@ main(int argc,char *argv[])
continue;
}
- if(sscanf(line,"PATH %" MKSTRING(MAX_PATH) "s\n",path)==1)
+ if(sscanf(line,"PATH %" MKSTRING(URLMAX_PATH) "s\n",path)==1)
{
- path[MAX_PATH]='\0';
+ path[URLMAX_PATH]='\0';
continue;
}