aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-12-19 13:03:25 +0000
committerWerner Koch <[email protected]>2012-12-19 13:03:25 +0000
commit550983f8fbe84ee81d3631b1dda91ad2e41b1a11 (patch)
tree20d1fa5e030218d9bfb47b2e1b9ebd30b814ad87
parentFix last commit (diff)
downloadgnupg-550983f8fbe84ee81d3631b1dda91ad2e41b1a11.tar.gz
gnupg-550983f8fbe84ee81d3631b1dda91ad2e41b1a11.zip
Adjust to GNU coding standards
-- A variable definition with initialization shall have only one variable per type.
-rw-r--r--util/http.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/util/http.c b/util/http.c
index b72489bd2..bfaaf1f0f 100644
--- a/util/http.c
+++ b/util/http.c
@@ -817,8 +817,13 @@ static int
connect_server( const char *server, ushort port, unsigned int flags,
struct http_srv *srv )
{
- int sock=-1, srvindex, srvcount=0, connected=0, hostfound=0, chosen=-1;
- struct srventry *srvlist=NULL;
+ int sock = -1;
+ int srvcount = 0;
+ int connected = 0;
+ int hostfound = 0;
+ int chosen = -1;
+ struct srventry *srvlist = NULL;
+ int srvindex;
#ifdef _WIN32
unsigned long inaddr;
@@ -981,7 +986,7 @@ connect_server( const char *server, ushort port, unsigned int flags,
}
#endif /* !HAVE_GETADDRINFO */
- if(chosen>-1 && srv)
+ if(chosen > -1 && srv)
{
srv->used_server = strdup (srvlist[chosen].target);
srv->used_port = srvlist[chosen].port;