diff options
author | 1996-12-21 22:23:36 +0000 | |
---|---|---|
committer | 1996-12-21 22:23:36 +0000 | |
commit | 07ea8d1515ffde9f9d310504e9c8852d6bf7074c (patch) | |
tree | b1b274b8fe893c81d243175ec21a32f3400dc0c3 /lib/libc | |
parent | $Id -> $OpenBSD (diff) | |
download | wireguard-openbsd-07ea8d1515ffde9f9d310504e9c8852d6bf7074c.tar.xz wireguard-openbsd-07ea8d1515ffde9f9d310504e9c8852d6bf7074c.zip |
-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'; |