Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/arp whitespace police



details:   https://anonhg.NetBSD.org/src/rev/a1422633c79c
branches:  trunk
changeset: 354187:a1422633c79c
user:      ryo <ryo%NetBSD.org@localhost>
date:      Tue Jun 06 19:59:10 2017 +0000

description:
whitespace police

diffstat:

 usr.sbin/arp/arp.c |  28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diffs (110 lines):

diff -r dfb72165b21c -r a1422633c79c usr.sbin/arp/arp.c
--- a/usr.sbin/arp/arp.c        Tue Jun 06 19:48:42 2017 +0000
+++ b/usr.sbin/arp/arp.c        Tue Jun 06 19:59:10 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arp.c,v 1.55 2016/04/04 07:37:08 ozaki-r Exp $ */
+/*     $NetBSD: arp.c,v 1.56 2017/06/06 19:59:10 ryo Exp $ */
 
 /*
  * Copyright (c) 1984, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)arp.c      8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: arp.c,v 1.55 2016/04/04 07:37:08 ozaki-r Exp $");
+__RCSID("$NetBSD: arp.c,v 1.56 2017/06/06 19:59:10 ryo Exp $");
 #endif
 #endif /* not lint */
 
@@ -96,7 +96,7 @@
 static void usage(void) __dead;
 
 static int aflag, nflag, vflag;
-static struct sockaddr_in so_mask = { 
+static struct sockaddr_in so_mask = {
        .sin_len = 8,
        .sin_addr = {
                .s_addr = 0xffffffff
@@ -206,7 +206,7 @@
                inputstring = line;
                for (ap = argv; ap < &argv[sizeof(argv) / sizeof(argv[0])] &&
                    (*ap = stresep(&inputstring, " \t", '\\')) != NULL;) {
-                      if (**ap != '\0')
+                       if (**ap != '\0')
                                ap++;
                }
                i = ap - argv;
@@ -257,7 +257,7 @@
 }
 
 /*
- * Set an individual arp entry 
+ * Set an individual arp entry
  */
 static int
 set(int argc, char **argv)
@@ -291,8 +291,8 @@
                        flags |= RTF_ANNOUNCE;
                        doing_proxy = 1;
                        if (argc && strncmp(argv[1], "pro", 3) == 0) {
-                               export_only = 1;
-                               argc--; argv++;
+                               export_only = 1;
+                               argc--; argv++;
                        }
                } else if (strncmp(argv[0], "trail", 5) == 0) {
                        warnx("%s: Sending trailers is no longer supported",
@@ -387,7 +387,7 @@
 }
 
 /*
- * Delete an arp entry 
+ * Delete an arp entry
  */
 int
 delete(const char *host, const char *info)
@@ -401,7 +401,7 @@
 
        s = getsocket();
        if (info && strncmp(info, "pro", 3) == 0)
-                sin_m.sin_other = SIN_PROXY;
+               sin_m.sin_other = SIN_PROXY;
        if (getinetaddr(host, &sin_m.sin_addr) == -1)
                return (1);
 tryagain:
@@ -572,13 +572,13 @@
        int i;
        unsigned long b;
        char *endp;
-       char *p; 
+       char *p;
        char *t, *r;
 
        p = LLADDR(sdl);
        endp = ((char *)(void *)sdl) + sdl->sdl_len;
        i = 0;
-       
+
        b = strtoul(ss, &t, 16);
        if (b > 255 || t == ss)
                return 1;
@@ -605,8 +605,8 @@
 
        progname = getprogname();
        (void)fprintf(stderr, "Usage: %s [-n] hostname\n", progname);
-       (void)fprintf(stderr, "       %s [-nv] -a\n", progname);
-       (void)fprintf(stderr, "       %s [-v] -d [-a|hostname [pub [proxy]]]\n",
+       (void)fprintf(stderr, "       %s [-nv] -a\n", progname);
+       (void)fprintf(stderr, "       %s [-v] -d [-a|hostname [pub [proxy]]]\n",
            progname);
        (void)fprintf(stderr, "       %s -s hostname ether_addr [temp] [pub [proxy]]\n",
            progname);
@@ -725,7 +725,7 @@
        }
 
        for (addr = ifaddrs; addr; addr = addr->ifa_next) {
-               if (addr->ifa_addr == NULL || 
+               if (addr->ifa_addr == NULL ||
                    addr->ifa_addr->sa_family != AF_LINK)
                        continue;
 



Home | Main Index | Thread Index | Old Index