diff options
| author | christos <christos@NetBSD.org> | 2003-06-27 18:37:48 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2003-06-27 18:37:48 +0000 |
| commit | 1e3cf33d74a896faecd61df43b8bccc51dd3cae7 (patch) | |
| tree | 0c3ddd70b48a853a6f93d8399e23d5a85629a42e /libexec/identd | |
| parent | 7d734f0fbdd943e3ae322afce655a2b27e3a6961 (diff) | |
fix botch in sysctl arg.
Diffstat (limited to 'libexec/identd')
| -rw-r--r-- | libexec/identd/netbsd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/identd/netbsd.c b/libexec/identd/netbsd.c index 504a795b3c5..72ed64ef8ec 100644 --- a/libexec/identd/netbsd.c +++ b/libexec/identd/netbsd.c @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd.c,v 1.19 2003/06/26 17:31:12 christos Exp $ */ +/* $NetBSD: netbsd.c,v 1.20 2003/06/27 18:37:48 christos Exp $ */ /* ** netbsd.c Low level kernel access functions for NetBSD @@ -66,7 +66,8 @@ int k_getuid( mib[6] = (int)laddr->s_addr; mib[7] = lport; - if ((rv = sysctl(mib, sizeof(mib), &myuid, &uidlen, NULL, 0)) < 0) { + if ((rv = sysctl(mib, sizeof(mib) / sizeof(mib[0]), &myuid, &uidlen, + NULL, 0)) < 0) { ERROR1("k_getuid: sysctl 1: %s", strerror(errno)); return -1; } |
