Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2008 21:56:58 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184185 - head/lib/libc/gen
Message-ID:  <200810222156.m9MLuwtD039988@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810222156.m9MLuwtD039988>