aboutsummaryrefslogtreecommitdiffstats
path: root/util/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/http.c')
-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;