summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2004-07-20 11:19:46 +0000
committerglebius <glebius@FreeBSD.org>2004-07-20 11:19:46 +0000
commitadcab18a0a8ce99a66727a4b51c1480bbcb127a2 (patch)
tree763ece91cc2889f8d6e867d714dc5fc4a385929e /sys
parentb303cee224e1bf851b74a8a74ce99f959b14e989 (diff)
downloadFreeBSD-src-adcab18a0a8ce99a66727a4b51c1480bbcb127a2.zip
FreeBSD-src-adcab18a0a8ce99a66727a4b51c1480bbcb127a2.tar.gz
1. Make ng_device.h system include. This fixes module build.
2. Sort includes, while here. 3. s/NULL/0/ in NG_SEND_MSG_HOOK(), since ng_ID_t is integer. PR: kern/41881 (part) Reviewed by: marks Approved by: julian (mentor)
Diffstat (limited to 'sys')
-rw-r--r--sys/netgraph/ng_device.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/netgraph/ng_device.c b/sys/netgraph/ng_device.c
index d258b40..4b0618f 100644
--- a/sys/netgraph/ng_device.c
+++ b/sys/netgraph/ng_device.c
@@ -31,20 +31,19 @@
*/
#include <sys/param.h>
-#include <sys/systm.h>
+#include <sys/conf.h>
+#include <sys/ioccom.h>
#include <sys/kernel.h>
-#include <sys/mbuf.h>
-#include <sys/uio.h>
-#include <sys/queue.h>
#include <sys/malloc.h>
-#include <sys/conf.h>
+#include <sys/mbuf.h>
#include <sys/poll.h>
-#include <sys/ioccom.h>
+#include <sys/queue.h>
+#include <sys/systm.h>
+#include <sys/uio.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
-
-#include "ng_device.h"
+#include <netgraph/ng_device.h>
/* turn this on for verbose messages */
#define NGD_DEBUG
@@ -477,8 +476,7 @@ ngdioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td
datap = (struct ngd_param_s *)msg->data;
datap->p = addr;
- /* NG_SEND_MSG_HOOK(error, here, msg, hook, retaddr) */
- NG_SEND_MSG_HOOK(error, sc->node, msg, connection->active_hook, NULL);
+ NG_SEND_MSG_HOOK(error, sc->node, msg, connection->active_hook, 0);
if(error)
printf("%s(): NG_SEND_MSG_HOOK error: %d\n",__func__,error);
OpenPOWER on IntegriCloud