From owner-svn-src-stable-9@FreeBSD.ORG Mon Jun 11 11:59:30 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E5011065673; Mon, 11 Jun 2012 11:59:30 +0000 (UTC) (envelope-from ache@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4837F8FC18; Mon, 11 Jun 2012 11:59:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5BBxUo1083028; Mon, 11 Jun 2012 11:59:30 GMT (envelope-from ache@svn.freebsd.org) Received: (from ache@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5BBxUw2083026; Mon, 11 Jun 2012 11:59:30 GMT (envelope-from ache@svn.freebsd.org) Message-Id: <201206111159.q5BBxUw2083026@svn.freebsd.org> From: "Andrey A. Chernov" Date: Mon, 11 Jun 2012 11:59:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236885 - stable/9/lib/libc/stdlib X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2012 11:59:30 -0000 Author: ache Date: Mon Jun 11 11:59:29 2012 New Revision: 236885 URL: http://svn.freebsd.org/changeset/base/236885 Log: MFC 236582,236618 - remove unused serrno variable Modified: stable/9/lib/libc/stdlib/realpath.c (contents, props changed) Modified: stable/9/lib/libc/stdlib/realpath.c ============================================================================== --- stable/9/lib/libc/stdlib/realpath.c Mon Jun 11 11:35:22 2012 (r236884) +++ stable/9/lib/libc/stdlib/realpath.c Mon Jun 11 11:59:29 2012 (r236885) @@ -54,7 +54,7 @@ realpath(const char * __restrict path, c char *p, *q, *s; size_t left_len, resolved_len; unsigned symlinks; - int m, serrno, slen; + int m, slen; char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; if (path == NULL) { @@ -65,7 +65,6 @@ realpath(const char * __restrict path, c errno = ENOENT; return (NULL); } - serrno = errno; if (resolved == NULL) { resolved = malloc(PATH_MAX); if (resolved == NULL)