From 28e461d672204f54b8eb68a590d36c23a32f9574 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Sat, 14 Dec 1996 12:18:28 +0000 Subject: -Wall'ing. --- bin/df/df.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/df/df.c') diff --git a/bin/df/df.c b/bin/df/df.c index ebe8df29cb0..14ef2cf10c7 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -1,4 +1,4 @@ -/* $OpenBSD: df.c,v 1.5 1996/12/07 09:09:06 deraadt Exp $ */ +/* $OpenBSD: df.c,v 1.6 1996/12/14 12:17:52 mickey Exp $ */ /* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */ /* @@ -49,7 +49,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: df.c,v 1.5 1996/12/07 09:09:06 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: df.c,v 1.6 1996/12/14 12:17:52 mickey Exp $"; #endif #endif /* not lint */ @@ -241,14 +241,14 @@ maketypelist(fslist) which = IN_LIST; /* Count the number of types. */ - for (i = 1, nextcp = fslist; nextcp = strchr(nextcp, ','); i++) + for (i = 1, nextcp = fslist; (nextcp = strchr(nextcp, ',')) != NULL; i++) ++nextcp; /* Build an array of that many types. */ if ((av = typelist = malloc((i + 1) * sizeof(char *))) == NULL) err(1, NULL); av[0] = fslist; - for (i = 1, nextcp = fslist; nextcp = strchr(nextcp, ','); i++) { + for (i = 1, nextcp = fslist; (nextcp = strchr(nextcp, ',')) != NULL; i++) { *nextcp = '\0'; av[i] = ++nextcp; } -- cgit v1.2.3