summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2011-11-06 05:20:27 +0000
committerfjoe <fjoe@FreeBSD.org>2011-11-06 05:20:27 +0000
commit8c3483dc98e16f8d8d35edf675f2ff893c9fc21e (patch)
treecce61bf7051ee994f1ab3fa54f5ba9d19c731cd7 /sys/netgraph
parenteb6224d51733d4f4c5171ca0fc5b4df125f8c4cd (diff)
downloadFreeBSD-src-8c3483dc98e16f8d8d35edf675f2ff893c9fc21e.zip
FreeBSD-src-8c3483dc98e16f8d8d35edf675f2ff893c9fc21e.tar.gz
Constify "address" argument of ng_address_path().
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/netgraph.h2
-rw-r--r--sys/netgraph/ng_base.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index 09ee09e..d649c6c 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -1135,7 +1135,7 @@ SYSCTL_DECL(_net_graph);
*/
int ng_address_ID(node_p here, item_p item, ng_ID_t ID, ng_ID_t retaddr);
int ng_address_hook(node_p here, item_p item, hook_p hook, ng_ID_t retaddr);
-int ng_address_path(node_p here, item_p item, char *address, ng_ID_t raddr);
+int ng_address_path(node_p here, item_p item, const char *address, ng_ID_t raddr);
int ng_bypass(hook_p hook1, hook_p hook2);
hook_p ng_findhook(node_p node, const char *name);
struct ng_type *ng_findtype(const char *type);
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 3c84dbf..6b59d97 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -3515,7 +3515,7 @@ ng_address_hook(node_p here, item_p item, hook_p hook, ng_ID_t retaddr)
}
int
-ng_address_path(node_p here, item_p item, char *address, ng_ID_t retaddr)
+ng_address_path(node_p here, item_p item, const char *address, ng_ID_t retaddr)
{
node_p dest = NULL;
hook_p hook = NULL;
OpenPOWER on IntegriCloud