diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-12-16 18:45:19 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-12-16 18:45:19 +0000 |
commit | e3223e71fbe77d196cf3507c5e73776b97a479be (patch) | |
tree | 71b82800a800f08bdfc42d722e275c01e5d9e5c5 /src/nat | |
parent | 5045c6bfc681c3c35e54fc5c6c3fe85526d8fcbf (diff) |
-cast returns from close to void to indicate that we intentionally ignore them, close socket on new error paths
git-svn-id: https://gnunet.org/svn/gnunet@18637 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/gnunet-helper-nat-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nat/gnunet-helper-nat-client.c b/src/nat/gnunet-helper-nat-client.c index f30348cc46..579090fe29 100644 --- a/src/nat/gnunet-helper-nat-client.c +++ b/src/nat/gnunet-helper-nat-client.c @@ -427,14 +427,14 @@ make_raw_socket () setsockopt (ret, SOL_SOCKET, SO_BROADCAST, (char *) &one, sizeof (one))) { fprintf (stderr, "setsockopt failed: %s\n", strerror (errno)); - close (ret); + (void) close (ret); return -1; } if (0 != setsockopt (ret, IPPROTO_IP, IP_HDRINCL, (char *) &one, sizeof (one))) { fprintf (stderr, "setsockopt failed: %s\n", strerror (errno)); - close (ret); + (void) close (ret); return -1; } return ret; @@ -490,7 +490,7 @@ main (int argc, char *const *argv) #endif send_icmp (&external, &target); send_icmp_udp (&external, &target); - close (rawsock); + (void) close (rawsock); return 0; } |