diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-05-16 12:37:11 -0400 |
---|---|---|
committer | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-05-16 12:39:08 -0400 |
commit | c7b90298984c46d820d3cee79a96d24870b5f200 (patch) | |
tree | 63430c3cd5e4b366e737168d9bbfa72c796a7004 /sockutils.c | |
parent | 01e64f25ab70e8d3475a774aa9d0364f9d199f68 (diff) | |
download | libpcap-master.tar.gz |
This quiets the compiler since it is not even returned anyway, and is a misleading variable name.
Diffstat (limited to 'sockutils.c')
-rw-r--r-- | sockutils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sockutils.c b/sockutils.c index 1c07f76f..6752f296 100644 --- a/sockutils.c +++ b/sockutils.c @@ -2082,7 +2082,6 @@ int sock_getascii_addrport(const struct sockaddr_storage *sockaddr, char *addres */ int sock_present2network(const char *address, struct sockaddr_storage *sockaddr, int addr_family, char *errbuf, int errbuflen) { - int retval; struct addrinfo *addrinfo; struct addrinfo hints; @@ -2090,7 +2089,7 @@ int sock_present2network(const char *address, struct sockaddr_storage *sockaddr, hints.ai_family = addr_family; - if ((retval = sock_initaddress(address, "22222" /* fake port */, &hints, &addrinfo, errbuf, errbuflen)) == -1) + if (sock_initaddress(address, "22222" /* fake port */, &hints, &addrinfo, errbuf, errbuflen) == -1) return 0; if (addrinfo->ai_family == PF_INET) |