svn commit: r236885 - stable/9/lib/libc/stdlib

Andrey A. Chernov ache at FreeBSD.org
Mon Jun 11 11:59:30 UTC 2012


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)


More information about the svn-src-stable-9 mailing list