diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-12-21 22:23:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-12-21 22:23:53 +0000 |
commit | c60e06beeb20521a15bacc5c672aa1b865b06a67 (patch) | |
tree | f2cc3a0e68a020f5e59132403d4a16547626359f /lib/libc | |
parent | f2d04b4c3d006dcc05c58dab6068fed44f01098a (diff) |
-Wall madness.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/compat-43/getwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/compat-43/getwd.c b/lib/libc/compat-43/getwd.c index 12880a9c49c..e6f0d0053b7 100644 --- a/lib/libc/compat-43/getwd.c +++ b/lib/libc/compat-43/getwd.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: getwd.c,v 1.3 1996/12/17 02:38:39 deraadt Exp $"; +static char *rcsid = "$OpenBSD: getwd.c,v 1.4 1996/12/21 22:23:37 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -47,7 +47,7 @@ getwd(buf) { char *p; - if (p = getcwd(buf, MAXPATHLEN)) + if ((p = getcwd(buf, MAXPATHLEN))) return(p); (void)strncpy(buf, strerror(errno), MAXPATHLEN-1); buf[MAXPATHLEN-1] = '\0'; |