diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-20 19:47:45 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-20 19:47:45 +0100 |
commit | 40622173588c0df7f5ef89f20448c6f40482e6d5 (patch) | |
tree | f7813d6aa7681140d8b44e744c22f4c0cc7a6480 /src/cli.c | |
parent | 401abd106f77fbfbb166535951f1a29b8caf3775 (diff) | |
download | gnutls-40622173588c0df7f5ef89f20448c6f40482e6d5.tar.gz |
define variable locally
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1399,7 +1399,6 @@ socket_open (socket_st * hd, const char *hostname, const char *service) int sd, err; char buffer[MAX_BUF + 1]; char portname[16] = { 0 }; - int yes; printf ("Resolving '%s'...\n", hostname); /* get server name */ @@ -1440,7 +1439,7 @@ socket_open (socket_st * hd, const char *hostname, const char *service) #ifdef IP_DONTFRAG if (hints.ai_socktype == SOCK_DGRAM) { - yes = 1; + int yes = 1; if (setsockopt (sd, IPPROTO_IP, IP_DONTFRAG, (const void *) &yes, sizeof (yes)) < 0) { |