summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-12-21 22:23:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-12-21 22:23:53 +0000
commitc60e06beeb20521a15bacc5c672aa1b865b06a67 (patch)
treef2cc3a0e68a020f5e59132403d4a16547626359f /lib
parentf2d04b4c3d006dcc05c58dab6068fed44f01098a (diff)
-Wall madness.
Diffstat (limited to 'lib')
-rw-r--r--lib/csu/i386/crt0.c4
-rw-r--r--lib/libc/compat-43/getwd.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c
index 9ec7585fa74..d38f3bced66 100644
--- a/lib/csu/i386/crt0.c
+++ b/lib/csu/i386/crt0.c
@@ -1,4 +1,6 @@
+/* $OpenBSD: crt0.c,v 1.2 1996/12/21 22:23:36 millert Exp $ */
/* $NetBSD: crt0.c,v 1.20 1995/06/03 13:16:08 pk Exp $ */
+
/*
* Copyright (c) 1993 Paul Kranenburg
* All rights reserved.
@@ -67,7 +69,7 @@ start()
argv = &kfp->kargv[0];
environ = argv + kfp->kargc + 1;
- if (ap = argv[0])
+ if ((ap = argv[0]))
if ((__progname = _strrchr(ap, '/')) == NULL)
__progname = ap;
else
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';