summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-10-22 21:56:57 +0000
committerkib <kib@FreeBSD.org>2008-10-22 21:56:57 +0000
commitd2358aab518c50cffb131feeefa641cad349a8ee (patch)
treef27150e4538a791f111c18867751058952c5c7d1 /lib/libc/gen
parente416d53f44665dfb8d453c9305332d7017646153 (diff)
downloadFreeBSD-src-d2358aab518c50cffb131feeefa641cad349a8ee.zip
FreeBSD-src-d2358aab518c50cffb131feeefa641cad349a8ee.tar.gz
Fix a typo. q is already a pointer.
Reported by: ache Pointy hat to: kib
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/__xuname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/__xuname.c b/lib/libc/gen/__xuname.c
index f385eb2..6f7d92a 100644
--- a/lib/libc/gen/__xuname.c
+++ b/lib/libc/gen/__xuname.c
@@ -133,7 +133,7 @@ __xuname(int namesize, void *namebuf)
mib[1] = HW_MACHINE;
len = namesize;
oerrno = errno;
- if (sysctl(mib, 2, &q, &len, NULL, 0) == -1) {
+ if (sysctl(mib, 2, q, &len, NULL, 0) == -1) {
if (errno == ENOMEM)
errno = oerrno;
else
OpenPOWER on IntegriCloud