diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2001-02-25 05:36:25 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2001-02-25 05:36:25 +0000 |
| commit | e519ede34837b0c82c16fc5fece7ee4d5e07e6c4 (patch) | |
| tree | 8c17ea28fb0098281b4c36eb6bd3386f0daa3e59 /sys/netgraph | |
| parent | 6de306ecee3831f48debaad1d0b22418faa48e10 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph')
| -rw-r--r-- | sys/netgraph/ng_sample.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c index eae205618d13..a07d699cd17d 100644 --- a/sys/netgraph/ng_sample.c +++ b/sys/netgraph/ng_sample.c @@ -151,7 +151,7 @@ static int ng_xxx_constructor(node_p node) { xxx_p privdata; - int i, error; + int i; /* Initialize private descriptor */ MALLOC(privdata, xxx_p, sizeof(*privdata), M_NETGRAPH, @@ -164,7 +164,7 @@ ng_xxx_constructor(node_p node) } /* Link structs together; this counts as our one reference to *nodep */ - NG_NODE_PRIVATE(node) = privdata; + NG_NODE_SET_PRIVATE(node, privdata); privdata->node = node; return (0); } @@ -331,8 +331,6 @@ ng_xxx_rcvdata(hook_p hook, item_p item ) int dlci = -2; int error; struct mbuf *m; - meta_p meta; - NGI_GET_M(item, m); if (NG_HOOK_PRIVATE(hook)) { @@ -422,7 +420,6 @@ static int ng_xxx_shutdown(node_p node) { const xxx_p privdata = NG_NODE_PRIVATE(node); - int error; #ifndef PERSISTANT_NODE NG_NODE_SET_PRIVATE(node, NULL); @@ -485,7 +482,7 @@ ng_xxx_connect(hook_p hook) } /* - * Dook disconnection + * Hook disconnection * * For this type, removal of the last link destroys the node */ |
