summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/misc.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-06-30 23:54:07 +0000
committermillert <millert@openbsd.org>1997-06-30 23:54:07 +0000
commit7d7b840c4a2110b51ecbfea72c57e44785e5d9f0 (patch)
tree2df5437a9c1d108361781c22488e6a0806e69189 /usr.bin/find/misc.c
parentFix printf format when listing inode number and #blocks to (diff)
downloadwireguard-openbsd-7d7b840c4a2110b51ecbfea72c57e44785e5d9f0.tar.xz
wireguard-openbsd-7d7b840c4a2110b51ecbfea72c57e44785e5d9f0.zip
Some -Wall cleanliness.
Diffstat (limited to 'usr.bin/find/misc.c')
-rw-r--r--usr.bin/find/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/find/misc.c b/usr.bin/find/misc.c
index d43be538341..6e71820b57c 100644
--- a/usr.bin/find/misc.c
+++ b/usr.bin/find/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.3 1996/10/24 03:46:05 tholo Exp $ */
+/* $OpenBSD: misc.c,v 1.4 1997/06/30 23:54:08 millert Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)misc.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$OpenBSD: misc.c,v 1.3 1996/10/24 03:46:05 tholo Exp $";
+static char rcsid[] = "$OpenBSD: misc.c,v 1.4 1997/06/30 23:54:08 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -67,7 +67,7 @@ brace_subst(orig, store, path, len)
register char ch, *p;
plen = strlen(path);
- for (p = *store; ch = *orig; ++orig)
+ for (p = *store; (ch = *orig); ++orig)
if (ch == '{' && orig[1] == '}') {
while ((p - *store) + plen > len)
if (!(*store = realloc(*store, len *= 2)))
@@ -125,7 +125,7 @@ emalloc(len)
{
void *p;
- if (p = malloc(len))
+ if ((p = malloc(len)))
return (p);
err(1, NULL);
}