Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/mcast KNF
details: https://anonhg.NetBSD.org/src/rev/5673fc7a329a
branches: trunk
changeset: 338305:5673fc7a329a
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon May 18 00:55:09 2015 +0000
description:
KNF
Tweaks of whitespaces and tabs.
diffstat:
tests/net/mcast/t_mcast.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diffs (79 lines):
diff -r 893269772757 -r 5673fc7a329a tests/net/mcast/t_mcast.c
--- a/tests/net/mcast/t_mcast.c Sun May 17 22:14:38 2015 +0000
+++ b/tests/net/mcast/t_mcast.c Mon May 18 00:55:09 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mcast.c,v 1.12 2015/05/17 15:48:57 ozaki-r Exp $ */
+/* $NetBSD: t_mcast.c,v 1.13 2015/05/18 00:55:09 ozaki-r Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
#ifdef __RCSID
-__RCSID("$NetBSD: t_mcast.c,v 1.12 2015/05/17 15:48:57 ozaki-r Exp $");
+__RCSID("$NetBSD: t_mcast.c,v 1.13 2015/05/18 00:55:09 ozaki-r Exp $");
#else
extern const char *__progname;
#define getprogname() __progname
@@ -88,12 +88,12 @@
static int
addmc(int s, struct addrinfo *ai, bool bug)
{
- struct ip_mreq m4;
+ struct ip_mreq m4;
struct ipv6_mreq m6;
struct sockaddr_in *s4;
struct sockaddr_in6 *s6;
unsigned int ifc;
-
+
switch (ai->ai_family) {
case AF_INET:
s4 = (void *)ai->ai_addr;
@@ -127,11 +127,11 @@
ifc = 1;
if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_LOOP,
&ifc, sizeof(ifc)) == -1)
- return -1;
+ return -1;
ifc = 224;
if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
&ifc, sizeof(ifc)) == -1)
- return -1;
+ return -1;
ifc = 1;
if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_IF, &ifc,
sizeof(ifc)) == -1)
@@ -140,7 +140,7 @@
ifc = 1;
#endif
m6.ipv6mr_interface = ifc;
- m6.ipv6mr_multiaddr = s6->sin6_addr;
+ m6.ipv6mr_multiaddr = s6->sin6_addr;
return setsockopt(s, IPPROTO_IPV6, IPV6_JOIN_GROUP,
&m6, sizeof(m6));
default:
@@ -467,14 +467,14 @@
ATF_TP_ADD_TCS(tp)
{
debug++;
- ATF_TP_ADD_TC(tp, conninet4);
- ATF_TP_ADD_TC(tp, connmappedinet4);
- ATF_TP_ADD_TC(tp, connmappedbuginet4);
- ATF_TP_ADD_TC(tp, conninet6);
- ATF_TP_ADD_TC(tp, unconninet4);
- ATF_TP_ADD_TC(tp, unconnmappedinet4);
- ATF_TP_ADD_TC(tp, unconnmappedbuginet4);
- ATF_TP_ADD_TC(tp, unconninet6);
+ ATF_TP_ADD_TC(tp, conninet4);
+ ATF_TP_ADD_TC(tp, connmappedinet4);
+ ATF_TP_ADD_TC(tp, connmappedbuginet4);
+ ATF_TP_ADD_TC(tp, conninet6);
+ ATF_TP_ADD_TC(tp, unconninet4);
+ ATF_TP_ADD_TC(tp, unconnmappedinet4);
+ ATF_TP_ADD_TC(tp, unconnmappedbuginet4);
+ ATF_TP_ADD_TC(tp, unconninet6);
return atf_no_error();
}
Home |
Main Index |
Thread Index |
Old Index