From 550983f8fbe84ee81d3631b1dda91ad2e41b1a11 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 19 Dec 2012 14:03:25 +0100 Subject: [PATCH] Adjust to GNU coding standards -- A variable definition with initialization shall have only one variable per type. --- util/http.c | 11 ++++++++--- 1 file 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;