summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-01-27 10:46:33 +0000
committerharti <harti@FreeBSD.org>2004-01-27 10:46:33 +0000
commita7d7d544988617ae648b20a1781dae5e2580636a (patch)
treea5c51e08f0b29440d0f01e1caff6de24feaad0a1 /sys/netgraph
parent8ca13640ae8e8171c677e958ed9ce1b54b66a8ee (diff)
downloadFreeBSD-src-a7d7d544988617ae648b20a1781dae5e2580636a.zip
FreeBSD-src-a7d7d544988617ae648b20a1781dae5e2580636a.tar.gz
Don't confuse NULL and 0, use 0 where an integer is expected.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c
index 7746638..547ce3a 100644
--- a/sys/netgraph/ng_source.c
+++ b/sys/netgraph/ng_source.c
@@ -479,7 +479,7 @@ ng_source_request_output_ifp(sc_p sc)
if (msg == NULL)
return (ENOBUFS);
- NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output.hook, NULL);
+ NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output.hook, 0);
return (error);
}
@@ -547,7 +547,7 @@ ng_source_set_autosrc(sc_p sc, u_int32_t flag)
return(ENOBUFS);
*(u_int32_t *)msg->data = flag;
- NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output.hook, NULL);
+ NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output.hook, 0);
return (error);
}
OpenPOWER on IntegriCloud