Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Make this compile again (remove unused serrno).



details:   https://anonhg.NetBSD.org/src/rev/e632466ee1a7
branches:  trunk
changeset: 583588:e632466ee1a7
user:      elad <elad%NetBSD.org@localhost>
date:      Sat Aug 13 21:16:58 2005 +0000

description:
Make this compile again (remove unused serrno).
Noted by uwe@.

diffstat:

 lib/libc/gen/getcwd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b82766d649d1 -r e632466ee1a7 lib/libc/gen/getcwd.c
--- a/lib/libc/gen/getcwd.c     Sat Aug 13 19:53:53 2005 +0000
+++ b/lib/libc/gen/getcwd.c     Sat Aug 13 21:16:58 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getcwd.c,v 1.39 2005/08/13 19:53:53 elad Exp $ */
+/*     $NetBSD: getcwd.c,v 1.40 2005/08/13 21:16:58 elad Exp $ */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1995
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)getcwd.c   8.5 (Berkeley) 2/7/95";
 #else
-__RCSID("$NetBSD: getcwd.c,v 1.39 2005/08/13 19:53:53 elad Exp $");
+__RCSID("$NetBSD: getcwd.c,v 1.40 2005/08/13 21:16:58 elad Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -69,7 +69,7 @@
 realpath(const char *path, char *resolved)
 {
        struct stat sb;
-       int idx = 0, n, nlnk = 0, serrno = errno;
+       int idx = 0, n, nlnk = 0;
        const char *q;
        char *p, wbuf[2][MAXPATHLEN];
        size_t len;



Home | Main Index | Thread Index | Old Index