summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-06-05 20:47:47 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-06-05 20:47:47 +0000
commitfe4ce19e453c5540bab64f1b50e4d8d2a711b4ab (patch)
tree6604d485b5e190c6b9a3cb38c44fb8a6a8f5787b
parentf1f10cf08e3dd40224298f07caf3af91ae721f16 (diff)
const'ify the char * parameter to pfi_kif_get and pfi_group_change
-rw-r--r--sys/net/pf_if.c6
-rw-r--r--sys/net/pfvar.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c
index f4441149266..a84f0aacb63 100644
--- a/sys/net/pf_if.c
+++ b/sys/net/pf_if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_if.c,v 1.37 2005/06/02 17:51:48 henning Exp $ */
+/* $OpenBSD: pf_if.c,v 1.38 2005/06/05 20:47:46 henning Exp $ */
/*
* Copyright 2005 Henning Brauer <henning@openbsd.org>
@@ -100,7 +100,7 @@ pfi_initialize(void)
}
struct pfi_kif *
-pfi_kif_get(char *kif_name)
+pfi_kif_get(const char *kif_name)
{
struct pfi_kif s, *kif;
@@ -279,7 +279,7 @@ pfi_detach_ifgroup(struct ifg_group *ifg)
}
void
-pfi_group_change(char *group)
+pfi_group_change(const char *group)
{
struct pfi_kif *kif;
struct pfi_dynaddr *dyn;
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index d5839898d0b..fc54a92b9a7 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.221 2005/05/27 21:41:03 mpf Exp $ */
+/* $OpenBSD: pfvar.h,v 1.222 2005/06/05 20:47:46 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1512,7 +1512,7 @@ extern struct pfi_statehead pfi_statehead;
extern struct pfi_kif *pfi_all;
void pfi_initialize(void);
-struct pfi_kif *pfi_kif_get(char *);
+struct pfi_kif *pfi_kif_get(const char *);
void pfi_kif_ref(struct pfi_kif *, enum pfi_kif_refs);
void pfi_kif_unref(struct pfi_kif *, enum pfi_kif_refs);
int pfi_kif_match(struct pfi_kif *, struct pfi_kif *);
@@ -1520,7 +1520,7 @@ void pfi_attach_ifnet(struct ifnet *);
void pfi_detach_ifnet(struct ifnet *);
void pfi_attach_ifgroup(struct ifg_group *);
void pfi_detach_ifgroup(struct ifg_group *);
-void pfi_group_change(char *);
+void pfi_group_change(const char *);
int pfi_match_addr(struct pfi_dynaddr *, struct pf_addr *,
sa_family_t);
int pfi_dynaddr_setup(struct pf_addr_wrap *, sa_family_t);