Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/mrouted Don't use bool as a variable name.
details: https://anonhg.NetBSD.org/src/rev/a8b597c07411
branches: trunk
changeset: 762554:a8b597c07411
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Feb 23 01:23:03 2011 +0000
description:
Don't use bool as a variable name.
Remove a bunch of parameter names form function prototypes.
diffstat:
usr.sbin/mrouted/defs.h | 24 ++++++++++++------------
usr.sbin/mrouted/kern.c | 8 ++++----
2 files changed, 16 insertions(+), 16 deletions(-)
diffs (65 lines):
diff -r 2e29d8bd5b6c -r a8b597c07411 usr.sbin/mrouted/defs.h
--- a/usr.sbin/mrouted/defs.h Wed Feb 23 01:09:18 2011 +0000
+++ b/usr.sbin/mrouted/defs.h Wed Feb 23 01:23:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: defs.h,v 1.14 2007/02/21 21:01:10 hubertf Exp $ */
+/* $NetBSD: defs.h,v 1.15 2011/02/23 01:23:03 dyoung Exp $ */
/*
* The mrouted program is covered by the license in the accompanying file
@@ -255,19 +255,19 @@
extern int find_src_grp(u_int32_t, u_int32_t, u_int32_t);
/* kern.c */
-extern void k_set_rcvbuf(int bufsize);
-extern void k_hdr_include(int bool);
-extern void k_set_ttl(int t);
-extern void k_set_loop(int l);
-extern void k_set_if(u_int32_t ifa);
-extern void k_join(u_int32_t grp, u_int32_t ifa);
-extern void k_leave(u_int32_t grp, u_int32_t ifa);
+extern void k_set_rcvbuf(int);
+extern void k_hdr_include(int);
+extern void k_set_ttl(int);
+extern void k_set_loop(int);
+extern void k_set_if(u_int32_t);
+extern void k_join(u_int32_t, u_int32_t);
+extern void k_leave(u_int32_t, u_int32_t);
extern void k_init_dvmrp(void);
extern void k_stop_dvmrp(void);
-extern void k_add_vif(vifi_t vifi, struct uvif *v);
-extern void k_del_vif(vifi_t vifi);
-extern void k_add_rg(u_int32_t origin, struct gtable *g);
-extern int k_del_rg(u_int32_t origin, struct gtable *g);
+extern void k_add_vif(vifi_t, struct uvif *);
+extern void k_del_vif(vifi_t);
+extern void k_add_rg(u_int32_t, struct gtable *);
+extern int k_del_rg(u_int32_t, struct gtable *);
extern int k_get_version(void);
#ifdef SNMP
diff -r 2e29d8bd5b6c -r a8b597c07411 usr.sbin/mrouted/kern.c
--- a/usr.sbin/mrouted/kern.c Wed Feb 23 01:09:18 2011 +0000
+++ b/usr.sbin/mrouted/kern.c Wed Feb 23 01:23:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.c,v 1.10 2006/05/09 20:18:09 mrg Exp $ */
+/* $NetBSD: kern.c,v 1.11 2011/02/23 01:23:03 dyoung Exp $ */
/*
* The mrouted program is covered by the license in the accompanying file
@@ -21,12 +21,12 @@
}
-void k_hdr_include(int bool)
+void k_hdr_include(int onoff)
{
#ifdef IP_HDRINCL
if (setsockopt(igmp_socket, IPPROTO_IP, IP_HDRINCL,
- (char *)&bool, sizeof(bool)) < 0)
- logit(LOG_ERR, errno, "setsockopt IP_HDRINCL %u", bool);
+ (char *)&onoff, sizeof(onoff)) < 0)
+ logit(LOG_ERR, errno, "setsockopt IP_HDRINCL %u", onoff);
#endif
}
Home |
Main Index |
Thread Index |
Old Index