X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Finterface.c;h=2f43192657c1d71153ce98b627de83e91a87d686;hb=8ae4cab4a85eea297a0b8ea9aa65c3c23b0a664b;hp=04abda39d1f8b0a7c706267ec023396756673bce;hpb=1ed9dd9d062e27807745c11736b0c6401677c12e;p=oweals%2Fbusybox.git diff --git a/libbb/interface.c b/libbb/interface.c index 04abda39d..2f4319265 100644 --- a/libbb/interface.c +++ b/libbb/interface.c @@ -15,7 +15,7 @@ * that either displays or sets the characteristics of * one or more of the system's networking interfaces. * - * Version: $Id: interface.c,v 1.9 2002/08/22 19:35:36 bug1 Exp $ + * Version: $Id: interface.c,v 1.11 2002/11/26 09:02:04 bug1 Exp $ * * Author: Fred N. van Kempen, * and others. Copyright 1993 MicroWalt Corporation @@ -44,7 +44,6 @@ * */ #define HAVE_AFINET 1 -#undef HAVE_AFINET6 #undef HAVE_AFIPX #undef HAVE_AFATALK #undef HAVE_AFNETROM @@ -52,8 +51,10 @@ #undef HAVE_AFECONET #undef HAVE_AFASH -#if CONFIG_FEATURE_IPV6 -#define HAVE_AFINET6 1 +#ifdef CONFIG_FEATURE_IPV6 +# define HAVE_AFINET6 1 +#else +# undef HAVE_AFINET6 #endif /* @@ -1739,7 +1740,7 @@ static void print_bytes_scaled(unsigned long long ull, const char *end) } } - printf("X bytes:%Lu (%Lu.%lu %sb)%s", ull, int_part, frac_part, ext, end); + printf("X bytes:%Lu (%Lu.%lu %siB)%s", ull, int_part, frac_part, ext, end); } static void ife_print(struct interface *ptr)