diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 21:57:37 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 21:57:37 +0300 |
commit | 98ee06d3d46aa7f89c204681c7075b53300a6a6e (patch) | |
tree | 0f5cafbb22cd83fb73e024acba658c7a51582951 /networking/route.c | |
parent | 806116b23407bdf95f22646f11f50b1d14e1cfc2 (diff) |
stop using __u32 etc. uint32_t is there for a reason
Diffstat (limited to 'networking/route.c')
-rw-r--r-- | networking/route.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/networking/route.c b/networking/route.c index a8926f44e..d6d9b7dd9 100644 --- a/networking/route.c +++ b/networking/route.c @@ -462,17 +462,13 @@ static const char flagchars[] = /* Must agree with flagvals[]. */ #endif ; -static -#ifndef CONFIG_FEATURE_IPV6 -__inline -#endif -void set_flags(char *flagstr, int flags) +static void set_flags(char *flagstr, int flags) { int i; *flagstr++ = 'U'; - for (i=0 ; (*flagstr = flagchars[i]) != 0 ; i++) { + for (i = 0; (*flagstr = flagchars[i]) != 0; i++) { if (flags & flagvals[i]) { ++flagstr; } @@ -480,7 +476,6 @@ void set_flags(char *flagstr, int flags) } /* also used in netstat */ -void displayroutes(int noresolve, int netstatfmt); void displayroutes(int noresolve, int netstatfmt) { char devname[64], flags[16], sdest[16], sgw[16]; @@ -492,9 +487,8 @@ void displayroutes(int noresolve, int netstatfmt) FILE *fp = xfopen("/proc/net/route", "r"); printf("Kernel IP routing table\n" - "Destination Gateway Genmask" - " Flags %s Iface\n", - netstatfmt ? " MSS Window irtt" : "Metric Ref Use"); + "Destination Gateway Genmask Flags %s Iface\n", + netstatfmt ? " MSS Window irtt" : "Metric Ref Use"); if (fscanf(fp, "%*[^\n]\n") < 0) { /* Skip the first line. */ goto ERROR; /* Empty or missing line, or read error. */ @@ -508,7 +502,7 @@ void displayroutes(int noresolve, int netstatfmt) if ((r < 0) && feof(fp)) { /* EOF with no (nonspace) chars read. */ break; } - ERROR: + ERROR: bb_error_msg_and_die("fscanf"); } @@ -574,7 +568,7 @@ static void INET6_displayroutes(int noresolve) if ((r < 0) && feof(fp)) { /* EOF with no (nonspace) chars read. */ break; } - ERROR: + ERROR: bb_error_msg_and_die("fscanf"); } |