1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Adjust to GNU coding standards

--

A variable definition with initialization shall have only one variable
per type.
This commit is contained in:
Werner Koch 2012-12-19 14:03:25 +01:00
parent 58004340cc
commit 550983f8fb

View File

@ -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;