diff options
author | julian <julian@FreeBSD.org> | 2001-02-25 05:36:25 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-02-25 05:36:25 +0000 |
commit | 2a3d8bdb3b5c2ab1ee8e2062400d36f55bf6febd (patch) | |
tree | e35188bf791976689245aa6a0665764623b49a21 /sys | |
parent | 97a8f9ea5a4292e6c172bcd4b10504de3572cfe7 (diff) | |
download | FreeBSD-src-2a3d8bdb3b5c2ab1ee8e2062400d36f55bf6febd.zip FreeBSD-src-2a3d8bdb3b5c2ab1ee8e2062400d36f55bf6febd.tar.gz |
Make the sample netgraph node compileable again.
Makes it easier for people if they can start with something
that actually compiles.
Diffstat (limited to 'sys')
-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 eae2056..a07d699 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 */ |