1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

Fix a typo. q is already a pointer.

Reported by:	ache
Pointy hat to:	kib
This commit is contained in:
Konstantin Belousov 2008-10-22 21:56:57 +00:00
parent 23aa8eeafc
commit 59e2759db8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184185

View File

@ -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