Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/route switch is not a function, so add a space; sort sw...



details:   https://anonhg.NetBSD.org/src/rev/183690ff01f7
branches:  trunk
changeset: 583155:183690ff01f7
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Wed Jul 20 21:12:40 2005 +0000

description:
switch is not a function, so add a space; sort switch elements
alphabetically (KNF).

diffstat:

 sbin/route/route.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (52 lines):

diff -r 6906fa8c635e -r 183690ff01f7 sbin/route/route.c
--- a/sbin/route/route.c        Wed Jul 20 17:48:17 2005 +0000
+++ b/sbin/route/route.c        Wed Jul 20 21:12:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.83 2005/07/15 21:29:54 ginsbach Exp $      */
+/*     $NetBSD: route.c,v 1.84 2005/07/20 21:12:40 ginsbach Exp $      */
 
 /*
  * Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)route.c    8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: route.c,v 1.83 2005/07/15 21:29:54 ginsbach Exp $");
+__RCSID("$NetBSD: route.c,v 1.84 2005/07/20 21:12:40 ginsbach Exp $");
 #endif
 #endif /* not lint */
 
@@ -160,7 +160,10 @@
                usage(NULL);
 
        while ((ch = getopt(argc, argv, "fnqvdts")) != -1)
-               switch(ch) {
+               switch (ch) {
+               case 'd':
+                       debugonly = 1;
+                       break;
                case 'f':
                        doflush = 1;
                        break;
@@ -170,17 +173,14 @@
                case 'q':
                        qflag = 1;
                        break;
-               case 'v':
-                       verbose = 1;
+               case 's':
+                       shortoutput = 1;
                        break;
                case 't':
                        tflag = 1;
                        break;
-               case 'd':
-                       debugonly = 1;
-                       break;
-               case 's':
-                       shortoutput = 1;
+               case 'v':
+                       verbose = 1;
                        break;
                case '?':
                default:



Home | Main Index | Thread Index | Old Index