Constify "address" argument of ng_address_path().

This commit is contained in:
Max Khon 2011-11-06 05:20:27 +00:00
parent c835bd16a8
commit 707d205808
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227130
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;