From 26d53eb197c6c47c323c3772bfdbfe7f3906e881 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 7 Mar 2001 06:33:01 +0000 Subject: This patch by Vladimir and Larry saves a few bytes. --- networking/route.c | 9 ++++----- route.c | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/networking/route.c b/networking/route.c index 9be002792..b1152ca9d 100644 --- a/networking/route.c +++ b/networking/route.c @@ -15,11 +15,10 @@ * Foundation; either version 2 of the License, or (at * your option) any later version. * - * $Id: route.c,v 1.7 2001/02/20 06:14:08 andersen Exp $ + * $Id: route.c,v 1.8 2001/03/07 06:33:01 andersen Exp $ * * displayroute() code added by Vladimir N. Oleynik - * busybox style adjustments by Larry Doolittle - * displayroute() format now matches net-tools-1.57/lib/inet_gr.c line 173. + * adjustments by Larry Doolittle */ #include @@ -394,7 +393,7 @@ void displayroutes(void) inet_ntoa(dest))); strcpy(sgw, (gw.s_addr==0 ? "*" : inet_ntoa(gw))); - printf("%-15s %-15s %-15s %-5s %-6d %-2d %7d %s\n", + printf("%-16s%-16s%-16s%-6s%-6d %-2d %7d %s\n", sdest, sgw, inet_ntoa(mask), flags, metric, ref, use, buff); @@ -412,7 +411,7 @@ int route_main(int argc, char **argv) if (*argv == NULL) { displayroutes(); - exit(EXIT_SUCCESS); + return EXIT_SUCCESS; } else { /* check verb */ if (strcmp(*argv, "add")==0) diff --git a/route.c b/route.c index 9be002792..b1152ca9d 100644 --- a/route.c +++ b/route.c @@ -15,11 +15,10 @@ * Foundation; either version 2 of the License, or (at * your option) any later version. * - * $Id: route.c,v 1.7 2001/02/20 06:14:08 andersen Exp $ + * $Id: route.c,v 1.8 2001/03/07 06:33:01 andersen Exp $ * * displayroute() code added by Vladimir N. Oleynik - * busybox style adjustments by Larry Doolittle - * displayroute() format now matches net-tools-1.57/lib/inet_gr.c line 173. + * adjustments by Larry Doolittle */ #include @@ -394,7 +393,7 @@ void displayroutes(void) inet_ntoa(dest))); strcpy(sgw, (gw.s_addr==0 ? "*" : inet_ntoa(gw))); - printf("%-15s %-15s %-15s %-5s %-6d %-2d %7d %s\n", + printf("%-16s%-16s%-16s%-6s%-6d %-2d %7d %s\n", sdest, sgw, inet_ntoa(mask), flags, metric, ref, use, buff); @@ -412,7 +411,7 @@ int route_main(int argc, char **argv) if (*argv == NULL) { displayroutes(); - exit(EXIT_SUCCESS); + return EXIT_SUCCESS; } else { /* check verb */ if (strcmp(*argv, "add")==0) -- cgit v1.2.3