diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-05 20:49:26 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-05 20:49:26 +0000 |
commit | 0a90cdedf6832f7812ebb3630ebd7065679abbcc (patch) | |
tree | fc8205728510d0088dc687f013b51e3e5644bef5 /sys/net | |
parent | fe4ce19e453c5540bab64f1b50e4d8d2a711b4ab (diff) |
const'ify the char *groupname param to if_addgroup and if_delgroup
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 6 | ||||
-rw-r--r-- | sys/net/if.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index edb7761af18..0d84c6f3a07 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.123 2005/05/26 04:07:45 henning Exp $ */ +/* $OpenBSD: if.c,v 1.124 2005/06/05 20:49:25 henning Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1577,7 +1577,7 @@ if_detached_watchdog(struct ifnet *ifp) * Add a group to an interface */ int -if_addgroup(struct ifnet *ifp, char *groupname) +if_addgroup(struct ifnet *ifp, const char *groupname) { struct ifg_list *ifgl; struct ifg_group *ifg = NULL; @@ -1639,7 +1639,7 @@ if_addgroup(struct ifnet *ifp, char *groupname) * Remove a group from an interface */ int -if_delgroup(struct ifnet *ifp, char *groupname) +if_delgroup(struct ifnet *ifp, const char *groupname) { struct ifg_list *ifgl; struct ifg_member *ifgm; diff --git a/sys/net/if.h b/sys/net/if.h index 9c8f5018c43..6b69d4cfa73 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if.h,v 1.70 2005/05/24 04:20:25 markus Exp $ */ +/* $OpenBSD: if.h,v 1.71 2005/06/05 20:49:25 henning Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -684,8 +684,8 @@ int ifconf(u_long, caddr_t); void ifinit(void); int ifioctl(struct socket *, u_long, caddr_t, struct proc *); int ifpromisc(struct ifnet *, int); -int if_addgroup(struct ifnet *, char *); -int if_delgroup(struct ifnet *, char *); +int if_addgroup(struct ifnet *, const char *); +int if_delgroup(struct ifnet *, const char *); int if_getgroup(caddr_t, struct ifnet *); struct ifnet *ifunit(const char *); |