summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-03-13 19:05:11 +0000
committerarchie <archie@FreeBSD.org>2000-03-13 19:05:11 +0000
commit7cd26274294f29508e02c8e6465570aeb6f16921 (patch)
tree284b24f5136b166c4d5082302d7a1b04bb8d2cb1
parent293fdc52167e72decb99c6fba30279604f980bde (diff)
downloadFreeBSD-src-7cd26274294f29508e02c8e6465570aeb6f16921.zip
FreeBSD-src-7cd26274294f29508e02c8e6465570aeb6f16921.tar.gz
Some minor prototype tweaks.
-rw-r--r--sys/netgraph/netgraph.h9
-rw-r--r--sys/netgraph/ng_base.c2
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index 7d84f94..d46e40c 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -160,16 +160,16 @@ struct ng_cmdlist {
struct ng_type {
u_int32_t version; /* must equal NG_VERSION */
- const char *name; /* Unique type name */
+ const char *name; /* Unique type name */
modeventhand_t mod_event; /* Module event handler (optional) */
ng_constructor_t *constructor; /* Node constructor */
ng_rcvmsg_t *rcvmsg; /* control messages come here */
ng_shutdown_t *shutdown; /* reset, and free resources */
ng_newhook_t *newhook; /* first notification of new hook */
- ng_findhook_t *findhook; /* only if you have 23000 hooks */
+ ng_findhook_t *findhook; /* only if you have lots of hooks */
ng_connect_t *connect; /* final notification of new hook */
ng_rcvdata_t *rcvdata; /* date comes here */
- ng_rcvdata_t *rcvdataq; /* or here if been queued */
+ ng_rcvdata_t *rcvdataq; /* or here if being queued */
ng_disconnect_t *disconnect; /* notify on disconnect */
const struct ng_cmdlist *cmdlist; /* commands we can convert */
@@ -258,8 +258,7 @@ ng_ID_t ng_node2ID(node_p node);
int ng_path2node(node_p here, const char *path, node_p *dest, char **rtnp);
int ng_path_parse(char *addr, char **node, char **path, char **hook);
int ng_queue_data(hook_p hook, struct mbuf *m, meta_p meta);
-int ng_queue_msg(node_p here, struct ng_mesg *msg, int len,
- const char *address);
+int ng_queue_msg(node_p here, struct ng_mesg *msg, const char *address);
void ng_release_node(node_p node);
void ng_rmnode(node_p node);
int ng_send_data(hook_p hook, struct mbuf *m, meta_p meta);
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 7d6bb6b..5cf9523 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -1876,7 +1876,7 @@ ng_queue_data(hook_p hook, struct mbuf *m, meta_p meta)
* put the msg onto a queue to be picked up by another PPL (probably splnet)
*/
int
-ng_queue_msg(node_p here, struct ng_mesg * msg, int len, const char *address)
+ng_queue_msg(node_p here, struct ng_mesg *msg, const char *address)
{
register struct ng_queue_entry *q;
int s;
OpenPOWER on IntegriCloud