mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Adjust to GNU coding standards
-- A variable definition with initialization shall have only one variable per type.
This commit is contained in:
parent
58004340cc
commit
550983f8fb
1 changed files with 8 additions and 3 deletions
11
util/http.c
11
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue