summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-20 19:47:45 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-20 19:47:45 +0100
commit40622173588c0df7f5ef89f20448c6f40482e6d5 (patch)
treef7813d6aa7681140d8b44e744c22f4c0cc7a6480 /src/cli.c
parent401abd106f77fbfbb166535951f1a29b8caf3775 (diff)
downloadgnutls-40622173588c0df7f5ef89f20448c6f40482e6d5.tar.gz
define variable locally
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cli.c b/src/cli.c
index d5559c0b82..3180dfca0d 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -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)
{