From owner-svn-src-all@FreeBSD.ORG Wed Oct 22 21:56:58 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46D701065791; Wed, 22 Oct 2008 21:56:58 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 360388FC1F; Wed, 22 Oct 2008 21:56:58 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9MLuwUU039989; Wed, 22 Oct 2008 21:56:58 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9MLuwtD039988; Wed, 22 Oct 2008 21:56:58 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200810222156.m9MLuwtD039988@svn.freebsd.org> From: Konstantin Belousov Date: Wed, 22 Oct 2008 21:56:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184185 - head/lib/libc/gen X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 21:56:58 -0000 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