diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-13 23:46:13 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-13 23:46:13 +0000 |
commit | 325d24bb1b28905e7063da86350efc41ce6b62ea (patch) | |
tree | 5614dcb05b83b7f3058ec54c4dff0b6b8a539a23 | |
parent | a8babb36e4e2b67dc519da619906a0e04ae65949 (diff) |
make kern_msgbuf work for sparc, i thought it worked for me before; from miod
-rw-r--r-- | sys/kern/kern_sysctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 57ab8fd74fc..f8a636256a3 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.53 2001/06/27 07:21:27 art Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.54 2001/07/13 23:46:12 mickey Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -370,7 +370,7 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) if (!msgbufp || msgbufp->msg_magic != MSG_MAGIC) return (ENXIO); return (sysctl_rdstruct(oldp, oldlenp, newp, msgbufp, - msgbufp->msg_bufs + sizeof(*msgbufp) - 1)); + msgbufp->msg_bufs + offsetof(struct msgbuf, msg_bufc))); case KERN_MALLOCSTATS: return (sysctl_malloc(name + 1, namelen - 1, oldp, oldlenp, newp, newlen, p)); |