svn commit: r184185 - head/lib/libc/gen

Konstantin Belousov kib at FreeBSD.org
Wed Oct 22 21:56:58 UTC 2008


Author: kib
Date: Wed Oct 22 21:56:57 2008
New Revision: 184185
URL: http://svn.freebsd.org/changeset/base/184185

Log:
  Fix a typo. q is already a pointer.
  
  Reported by:	ache
  Pointy hat to:	kib

Modified:
  head/lib/libc/gen/__xuname.c

Modified: head/lib/libc/gen/__xuname.c
==============================================================================
--- head/lib/libc/gen/__xuname.c	Wed Oct 22 21:56:44 2008	(r184184)
+++ head/lib/libc/gen/__xuname.c	Wed Oct 22 21:56:57 2008	(r184185)
@@ -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


More information about the svn-src-head mailing list