diff options
author | guy <guy> | 2002-11-13 06:46:16 +0000 |
---|---|---|
committer | guy <guy> | 2002-11-13 06:46:16 +0000 |
commit | 215669fbe8913545d8a65c500ce51caca543204c (patch) | |
tree | 140e3a515e0dc710cd6483df2b12d4fe0ce46022 /inet.c | |
parent | b323d42b7afd1f4d5a327d29cd22a91607e6e5df (diff) | |
download | libpcap-215669fbe8913545d8a65c500ce51caca543204c.tar.gz |
As per Ayamura Kikuchi, on some UNIXes, such as IRIX, "sa_len" is
apparently defined in such a way that you can't use it as a variable
name; use "sa_length" instead.
Diffstat (limited to 'inet.c')
-rw-r--r-- | inet.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -34,7 +34,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/inet.c,v 1.52 2002-08-02 03:44:20 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/inet.c,v 1.53 2002-11-13 06:46:16 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -93,13 +93,13 @@ struct rtentry; /* declarations in <net/if.h> */ #endif struct sockaddr * -dup_sockaddr(struct sockaddr *sa, size_t sa_len) +dup_sockaddr(struct sockaddr *sa, size_t sa_length) { struct sockaddr *newsa; - if ((newsa = malloc(sa_len)) == NULL) + if ((newsa = malloc(sa_length)) == NULL) return (NULL); - return (memcpy(newsa, sa, sa_len)); + return (memcpy(newsa, sa, sa_length)); } static int |