Use compare_string_array in ipaddress to save a few bytes, minor cleanups

This commit is contained in:
Glenn L McGrath
2002-12-02 01:40:05 +00:00
parent 18eae0031a
commit 2626ef613e
3 changed files with 169 additions and 129 deletions

View File

@@ -33,6 +33,8 @@
#include "busybox.h"
static int do_link;
static int on_off(char *msg)
{
error_msg("Error: argument of \"%s\" must be \"on\" or \"off\"", msg);
@@ -332,6 +334,13 @@ static int do_set(int argc, char **argv)
return 0;
}
static int ipaddr_list_link(int argc, char **argv)
{
preferred_family = AF_PACKET;
do_link = 1;
return ipaddr_list(argc, argv);
}
int do_iplink(int argc, char **argv)
{
if (argc > 0) {