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)
This commit is contained in:
parent
2f8e2ebbe2
commit
b3e3ef9836
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132446
@ -31,20 +31,19 @@
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.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/poll.h>
|
||||
#include <sys/ioccom.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/mbuf.h>
|
||||
#include <sys/poll.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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user