diff options
author | Glenn L McGrath | 2002-11-26 02:40:56 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-11-26 02:40:56 +0000 |
commit | d7fb1b372c7f494f623c687756a7fef945383814 (patch) | |
tree | ea9ec84f4401e697e2644f8378124e2778a7d7d6 /libbb | |
parent | 2801eb925d957361c78dbdcf539cf7c33f0741a9 (diff) | |
download | busybox-d7fb1b372c7f494f623c687756a7fef945383814.zip busybox-d7fb1b372c7f494f623c687756a7fef945383814.tar.gz |
Use #ifdef instead of #if
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/create_icmp6_socket.c | 2 | ||||
-rw-r--r-- | libbb/inet_common.c | 8 | ||||
-rw-r--r-- | libbb/xgethostbyname2.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/libbb/create_icmp6_socket.c b/libbb/create_icmp6_socket.c index a095656..1d0b6b6 100644 --- a/libbb/create_icmp6_socket.c +++ b/libbb/create_icmp6_socket.c @@ -14,7 +14,7 @@ #include <unistd.h> #include "libbb.h" -#if CONFIG_FEATURE_IPV6 +#ifdef CONFIG_FEATURE_IPV6 int create_icmp6_socket(void) { struct protoent *proto; diff --git a/libbb/inet_common.c b/libbb/inet_common.c index c7bf409..52fd134 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c @@ -4,7 +4,7 @@ * * Heavily modified by Manuel Novoa III Mar 12, 2001 * - * Version: $Id: inet_common.c,v 1.3 2002/07/03 11:46:36 andersen Exp $ + * Version: $Id: inet_common.c,v 1.4 2002/11/26 02:35:15 bug1 Exp $ * */ @@ -17,7 +17,7 @@ #include "libbb.h" #ifdef DEBUG -#include <resolv.h> +# include <resolv.h> #endif @@ -178,7 +178,7 @@ int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in, return (0); } -#if CONFIG_FEATURE_IPV6 +#ifdef CONFIG_FEATURE_IPV6 int INET6_resolve(char *name, struct sockaddr_in6 *sin6) { @@ -199,7 +199,7 @@ int INET6_resolve(char *name, struct sockaddr_in6 *sin6) } #ifndef IN6_IS_ADDR_UNSPECIFIED -#define IN6_IS_ADDR_UNSPECIFIED(a) \ +# define IN6_IS_ADDR_UNSPECIFIED(a) \ (((__u32 *) (a))[0] == 0 && ((__u32 *) (a))[1] == 0 && \ ((__u32 *) (a))[2] == 0 && ((__u32 *) (a))[3] == 0) #endif diff --git a/libbb/xgethostbyname2.c b/libbb/xgethostbyname2.c index c66acfe..f4cbb6a 100644 --- a/libbb/xgethostbyname2.c +++ b/libbb/xgethostbyname2.c @@ -24,7 +24,7 @@ #include "libbb.h" -#if CONFIG_FEATURE_IPV6 +#ifdef CONFIG_FEATURE_IPV6 struct hostent *xgethostbyname2(const char *name, int af) { struct hostent *retval; |