summaryrefslogtreecommitdiff
path: root/print-lldp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-31 00:43:45 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-31 00:43:45 -0800
commit0dad1934af3db3f97d4371463089c8725dbfa26d (patch)
treeeaedbdb157d6aae6e44ade1830a6144b08a1eaaf /print-lldp.c
parent44c822e9f671b7a9b2e52b781cdbf38933cbdeaf (diff)
downloadtcpdump-0dad1934af3db3f97d4371463089c8725dbfa26d.tar.gz
Have ip{6}addr_string take a u_char * as the second argument.
Fix warnings that introduces.
Diffstat (limited to 'print-lldp.c')
-rw-r--r--print-lldp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-lldp.c b/print-lldp.c
index e76260ec..c91b4c27 100644
--- a/print-lldp.c
+++ b/print-lldp.c
@@ -1336,13 +1336,13 @@ lldp_network_addr_print(netdissect_options *ndo, const u_char *tptr, u_int len)
if (len < 4)
return NULL;
/* This cannot be assigned to ipaddr_string(), which is a macro. */
- pfunc = getname;
+ pfunc = ipaddr_string;
break;
case AFNUM_INET6:
if (len < 16)
return NULL;
/* This cannot be assigned to ip6addr_string(), which is a macro. */
- pfunc = getname6;
+ pfunc = ip6addr_string;
break;
case AFNUM_802:
if (len < 6)