From 8045b08e4df0219c258a95afc6a654c8ba4f3494 Mon Sep 17 00:00:00 2001 From: mdf Date: Wed, 12 Jan 2011 19:53:56 +0000 Subject: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the rest of the devices. --- sys/dev/iscsi/initiator/iscsi.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/dev/iscsi') diff --git a/sys/dev/iscsi/initiator/iscsi.c b/sys/dev/iscsi/initiator/iscsi.c index 5d7a5b7f..d35f631 100644 --- a/sys/dev/iscsi/initiator/iscsi.c +++ b/sys/dev/iscsi/initiator/iscsi.c @@ -229,12 +229,9 @@ iscsi_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int mode, struct thread * error = sp->soc == NULL? ENOTCONN: i_fullfeature(dev, 1); if(error == 0) { sp->proc = td->td_proc; - SYSCTL_ADD_UINT(&sp->clist, - SYSCTL_CHILDREN(sp->oid), - OID_AUTO, - "pid", - CTLFLAG_RD, - &sp->proc->p_pid, sizeof(pid_t), "control process id"); + SYSCTL_ADD_INT(&sp->clist, SYSCTL_CHILDREN(sp->oid), + OID_AUTO, "pid", CTLFLAG_RD, + &sp->proc->p_pid, sizeof(pid_t), "control process id"); } break; -- cgit v1.1