diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-16 02:33:09 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-16 02:33:09 +0000 |
commit | eaa811cd7cb3bf32f0278b3a01acfed9c79b5cfd (patch) | |
tree | 8e26188ba73b473aa4507b94c60d02c73a54d432 /lib/libpcap/nametoaddr.c | |
parent | 8b2d23555b5d71b27f72c08d9978eccc3a02fa78 (diff) |
Use __inline
Diffstat (limited to 'lib/libpcap/nametoaddr.c')
-rw-r--r-- | lib/libpcap/nametoaddr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libpcap/nametoaddr.c b/lib/libpcap/nametoaddr.c index 5da21a46875..f16e39a5c8f 100644 --- a/lib/libpcap/nametoaddr.c +++ b/lib/libpcap/nametoaddr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nametoaddr.c,v 1.4 1996/07/12 13:19:09 mickey Exp $ */ +/* $OpenBSD: nametoaddr.c,v 1.5 1996/09/16 02:33:06 tholo Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996 @@ -63,7 +63,7 @@ struct rtentry; #define NTOHS(x) (x) = ntohs(x) #endif -static inline int xdtoi(int); +static __inline int xdtoi(int); /* * Convert host name to internet address. @@ -216,7 +216,7 @@ pcap_nametoeproto(const char *s) } /* Hex digit to integer. */ -static inline int +static __inline int xdtoi(c) register int c; { @@ -364,5 +364,8 @@ __pcap_nametodnaddr(const char *name) #else bpf_error("decnet name support not included, '%s' cannot be translated\n", name); +#ifdef lint + return 0; +#endif #endif } |