Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ifconfig Whitespace fix.
details: https://anonhg.NetBSD.org/src/rev/07331b8f6317
branches: trunk
changeset: 964775:07331b8f6317
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Aug 16 10:33:17 2019 +0000
description:
Whitespace fix.
diffstat:
sbin/ifconfig/af_atalk.c | 12 ++++++------
sbin/ifconfig/af_inet.c | 10 +++++-----
sbin/ifconfig/af_inet6.c | 16 ++++++++--------
sbin/ifconfig/af_inetany.c | 10 +++++-----
sbin/ifconfig/af_link.c | 12 ++++++------
sbin/ifconfig/env.c | 8 ++++----
sbin/ifconfig/ether.c | 10 +++++-----
sbin/ifconfig/extern.h | 4 ++--
sbin/ifconfig/ieee80211.c | 8 ++++----
sbin/ifconfig/ifconfig.c | 22 +++++++++++-----------
sbin/ifconfig/parse.c | 10 +++++-----
sbin/ifconfig/parse.h | 4 ++--
sbin/ifconfig/pfsync.c | 6 +++---
sbin/ifconfig/tunnel.c | 10 +++++-----
sbin/ifconfig/util.c | 10 +++++-----
sbin/ifconfig/vlan.c | 10 +++++-----
16 files changed, 81 insertions(+), 81 deletions(-)
diffs (truncated from 543 to 300 lines):
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/af_atalk.c
--- a/sbin/ifconfig/af_atalk.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/af_atalk.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: af_atalk.c,v 1.19 2013/10/19 00:35:30 christos Exp $ */
+/* $NetBSD: af_atalk.c,v 1.20 2019/08/16 10:33:17 msaitoh Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -31,14 +31,14 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: af_atalk.c,v 1.19 2013/10/19 00:35:30 christos Exp $");
+__RCSID("$NetBSD: af_atalk.c,v 1.20 2019/08/16 10:33:17 msaitoh Exp $");
#endif /* not lint */
-#include <sys/param.h>
-#include <sys/ioctl.h>
+#include <sys/param.h>
+#include <sys/ioctl.h>
#include <sys/socket.h>
-#include <net/if.h>
+#include <net/if.h>
#include <netatalk/at.h>
@@ -185,7 +185,7 @@
char buf[40];
(void)getnameinfo(sa, sa->sa_len, buf, sizeof(buf), NULL, 0, 0);
-
+
printf("%s%s", prefix, buf);
}
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/af_inet.c
--- a/sbin/ifconfig/af_inet.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/af_inet.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: af_inet.c,v 1.25 2018/06/11 17:45:50 kamil Exp $ */
+/* $NetBSD: af_inet.c,v 1.26 2019/08/16 10:33:17 msaitoh Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -31,14 +31,14 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: af_inet.c,v 1.25 2018/06/11 17:45:50 kamil Exp $");
+__RCSID("$NetBSD: af_inet.c,v 1.26 2019/08/16 10:33:17 msaitoh Exp $");
#endif /* not lint */
-#include <sys/param.h>
-#include <sys/ioctl.h>
+#include <sys/param.h>
+#include <sys/ioctl.h>
#include <sys/socket.h>
-#include <net/if.h>
+#include <net/if.h>
#include <netinet/in.h>
#include <netinet/in_var.h>
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/af_inet6.c
--- a/sbin/ifconfig/af_inet6.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/af_inet6.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: af_inet6.c,v 1.38 2016/10/01 15:10:58 roy Exp $ */
+/* $NetBSD: af_inet6.c,v 1.39 2019/08/16 10:33:17 msaitoh Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -31,14 +31,14 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: af_inet6.c,v 1.38 2016/10/01 15:10:58 roy Exp $");
+__RCSID("$NetBSD: af_inet6.c,v 1.39 2019/08/16 10:33:17 msaitoh Exp $");
#endif /* not lint */
-#include <sys/param.h>
-#include <sys/ioctl.h>
+#include <sys/param.h>
+#include <sys/ioctl.h>
#include <sys/socket.h>
-#include <net/if.h>
+#include <net/if.h>
#include <netinet/in.h>
#include <netinet/in_var.h>
#include <netinet6/nd6.h>
@@ -222,7 +222,7 @@
errx(EXIT_FAILURE,
"eui64 address modifier not allowed for the AF");
}
- in6 = &ifra->ifra_addr.sin6_addr;
+ in6 = &ifra->ifra_addr.sin6_addr;
if (memcmp(&in6addr_any.s6_addr[8], &in6->s6_addr[8], 8) != 0) {
union {
struct sockaddr_in6 sin6;
@@ -250,9 +250,9 @@
}
}
if (lladdr == NULL)
- errx(EXIT_FAILURE, "could not determine link local address");
+ errx(EXIT_FAILURE, "could not determine link local address");
- memcpy(&in6->s6_addr[8], &lladdr->s6_addr[8], 8);
+ memcpy(&in6->s6_addr[8], &lladdr->s6_addr[8], 8);
freeifaddrs(ifap);
return 0;
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/af_inetany.c
--- a/sbin/ifconfig/af_inetany.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/af_inetany.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: af_inetany.c,v 1.17 2012/12/30 22:52:35 christos Exp $ */
+/* $NetBSD: af_inetany.c,v 1.18 2019/08/16 10:33:17 msaitoh Exp $ */
/*-
* Copyright (c) 2008 David Young. All rights reserved.
@@ -27,14 +27,14 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: af_inetany.c,v 1.17 2012/12/30 22:52:35 christos Exp $");
+__RCSID("$NetBSD: af_inetany.c,v 1.18 2019/08/16 10:33:17 msaitoh Exp $");
#endif /* not lint */
-#include <sys/param.h>
-#include <sys/ioctl.h>
+#include <sys/param.h>
+#include <sys/ioctl.h>
#include <sys/socket.h>
-#include <net/if.h>
+#include <net/if.h>
#include <netinet/in.h>
#include <netinet/in_var.h>
#include <netinet6/nd6.h>
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/af_link.c
--- a/sbin/ifconfig/af_link.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/af_link.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: af_link.c,v 1.7 2014/01/19 22:31:13 matt Exp $ */
+/* $NetBSD: af_link.c,v 1.8 2019/08/16 10:33:17 msaitoh Exp $ */
/*-
* Copyright (c) 2008 David Young. All rights reserved.
@@ -27,15 +27,15 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: af_link.c,v 1.7 2014/01/19 22:31:13 matt Exp $");
+__RCSID("$NetBSD: af_link.c,v 1.8 2019/08/16 10:33:17 msaitoh Exp $");
#endif /* not lint */
-#include <sys/param.h>
-#include <sys/ioctl.h>
+#include <sys/param.h>
+#include <sys/ioctl.h>
#include <sys/socket.h>
-#include <net/if.h>
-#include <net/if_dl.h>
+#include <net/if.h>
+#include <net/if_dl.h>
#include <assert.h>
#include <err.h>
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/env.c
--- a/sbin/ifconfig/env.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/env.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: env.c,v 1.11 2016/03/07 15:56:17 christos Exp $ */
+/* $NetBSD: env.c,v 1.12 2019/08/16 10:33:17 msaitoh Exp $ */
/*-
* Copyright (c) 2008 David Young. All rights reserved.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: env.c,v 1.11 2016/03/07 15:56:17 christos Exp $");
+__RCSID("$NetBSD: env.c,v 1.12 2019/08/16 10:33:17 msaitoh Exp $");
#endif /* not lint */
#include <errno.h>
@@ -138,7 +138,7 @@
}
datalen = prop_data_size(data);
if (datalen > buflen) {
- errno = ENAMETOOLONG;
+ errno = ENAMETOOLONG;
return -1;
}
memcpy(buf, prop_data_data_nocopy(data), datalen);
@@ -159,7 +159,7 @@
}
datalen = prop_data_size(data);
if (datalen >= buflen) {
- errno = ENAMETOOLONG;
+ errno = ENAMETOOLONG;
return -1;
}
memcpy(buf, prop_data_data_nocopy(data), datalen);
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/ether.c
--- a/sbin/ifconfig/ether.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/ether.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ether.c,v 1.6 2019/07/17 03:26:24 msaitoh Exp $ */
+/* $NetBSD: ether.c,v 1.7 2019/08/16 10:33:17 msaitoh Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -31,13 +31,13 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ether.c,v 1.6 2019/07/17 03:26:24 msaitoh Exp $");
+__RCSID("$NetBSD: ether.c,v 1.7 2019/08/16 10:33:17 msaitoh Exp $");
#endif /* not lint */
-#include <sys/param.h>
-#include <sys/ioctl.h>
+#include <sys/param.h>
+#include <sys/ioctl.h>
-#include <net/if.h>
+#include <net/if.h>
#include <net/if_ether.h>
#include <assert.h>
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/extern.h
--- a/sbin/ifconfig/extern.h Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/extern.h Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.15 2018/12/21 08:58:08 msaitoh Exp $ */
+/* $NetBSD: extern.h,v 1.16 2019/08/16 10:33:17 msaitoh Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#include <prop/proplib.h>
#include "util.h"
-#define RIDADDR 0
+#define RIDADDR 0
#define ADDR 1
#define MASK 2
#define DSTADDR 3
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/ieee80211.c
--- a/sbin/ifconfig/ieee80211.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/ieee80211.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee80211.c,v 1.29 2016/09/22 18:22:51 christos Exp $ */
+/* $NetBSD: ieee80211.c,v 1.30 2019/08/16 10:33:17 msaitoh Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ieee80211.c,v 1.29 2016/09/22 18:22:51 christos Exp $");
+__RCSID("$NetBSD: ieee80211.c,v 1.30 2019/08/16 10:33:17 msaitoh Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -470,7 +470,7 @@
return -1;
}
- if ((ifr.ifr_flags & IFF_UP) == 0)
+ if ((ifr.ifr_flags & IFF_UP) == 0)
errx(EXIT_FAILURE, "The interface must be up before scanning.");
scan_and_wait(env);
@@ -1191,7 +1191,7 @@
bufsize -= 2;
}
maxlen = i;
- } else{
+ } else {
/* printable, truncate as needed */
strlcpy(buf, (const char *)essid, maxlen);
}
diff -r 131c43089f17 -r 07331b8f6317 sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c Fri Aug 16 08:52:46 2019 +0000
+++ b/sbin/ifconfig/ifconfig.c Fri Aug 16 10:33:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ifconfig.c,v 1.239 2019/07/04 02:45:45 ozaki-r Exp $ */
+/* $NetBSD: ifconfig.c,v 1.240 2019/08/16 10:33:17 msaitoh Exp $ */
/*-
* Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
#ifndef lint
Home |
Main Index |
Thread Index |
Old Index