summaryrefslogtreecommitdiff
path: root/inet.c
diff options
context:
space:
mode:
authorguy <guy>2002-11-13 06:46:16 +0000
committerguy <guy>2002-11-13 06:46:16 +0000
commit215669fbe8913545d8a65c500ce51caca543204c (patch)
tree140e3a515e0dc710cd6483df2b12d4fe0ce46022 /inet.c
parentb323d42b7afd1f4d5a327d29cd22a91607e6e5df (diff)
downloadlibpcap-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/inet.c b/inet.c
index 2623341a..03cf3cc7 100644
--- a/inet.c
+++ b/inet.c
@@ -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