Module Name: src Committed By: dyoung Date: Wed Feb 23 01:23:04 UTC 2011
Modified Files: src/usr.sbin/mrouted: defs.h kern.c Log Message: Don't use bool as a variable name. Remove a bunch of parameter names form function prototypes. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/mrouted/defs.h cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/mrouted/kern.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/mrouted/defs.h diff -u src/usr.sbin/mrouted/defs.h:1.14 src/usr.sbin/mrouted/defs.h:1.15 --- src/usr.sbin/mrouted/defs.h:1.14 Wed Feb 21 21:01:10 2007 +++ src/usr.sbin/mrouted/defs.h Wed Feb 23 01:23:03 2011 @@ -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 Index: src/usr.sbin/mrouted/kern.c diff -u src/usr.sbin/mrouted/kern.c:1.10 src/usr.sbin/mrouted/kern.c:1.11 --- src/usr.sbin/mrouted/kern.c:1.10 Tue May 9 20:18:09 2006 +++ src/usr.sbin/mrouted/kern.c Wed Feb 23 01:23:03 2011 @@ -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 }