diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-11 11:24:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-11 11:24:56 +0000 |
commit | 5eedbd00ef4cb4a9d8179b10b1f8140ccf0e1172 (patch) | |
tree | 58e17cc92041152b674b16b596628c8163a3dd97 /usr.bin/ar | |
parent | 089ed1a3a82f83c83dbed0cd6c1fbad0d2749bba (diff) |
prelim Wall
Diffstat (limited to 'usr.bin/ar')
-rw-r--r-- | usr.bin/ar/append.c | 6 | ||||
-rw-r--r-- | usr.bin/ar/misc.c | 6 | ||||
-rw-r--r-- | usr.bin/ar/replace.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/ar/append.c b/usr.bin/ar/append.c index 5d3dc169708..903c063d0b6 100644 --- a/usr.bin/ar/append.c +++ b/usr.bin/ar/append.c @@ -1,4 +1,4 @@ -/* $OpenBSD: append.c,v 1.2 1996/06/26 05:31:16 deraadt Exp $ */ +/* $OpenBSD: append.c,v 1.3 1997/09/11 11:24:54 deraadt Exp $ */ /* $NetBSD: append.c,v 1.5 1995/03/26 03:27:37 glass Exp $ */ /*- @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)append.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: append.c,v 1.2 1996/06/26 05:31:16 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: append.c,v 1.3 1997/09/11 11:24:54 deraadt Exp $"; #endif #endif /* not lint */ @@ -78,7 +78,7 @@ append(argv) /* Read from disk, write to an archive; pad on write. */ SETCF(0, 0, afd, archive, WPAD); - for (eval = 0; file = *argv++;) { + for (eval = 0; (file = *argv++);) { if ((fd = open(file, O_RDONLY)) < 0) { warn("%s", file); eval = 1; diff --git a/usr.bin/ar/misc.c b/usr.bin/ar/misc.c index fe67b468843..65e71d46bdd 100644 --- a/usr.bin/ar/misc.c +++ b/usr.bin/ar/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.2 1996/06/26 05:31:21 deraadt Exp $ */ +/* $OpenBSD: misc.c,v 1.3 1997/09/11 11:24:54 deraadt Exp $ */ /* $NetBSD: misc.c,v 1.6 1995/03/26 03:27:55 glass Exp $ */ /*- @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: misc.c,v 1.2 1996/06/26 05:31:21 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: misc.c,v 1.3 1997/09/11 11:24:54 deraadt Exp $"; #endif #endif /* not lint */ @@ -104,7 +104,7 @@ files(argv) for (list = argv; *list; ++list) if (compare(*list)) { p = *list; - for (; list[0] = list[1]; ++list) + for (; (list[0] = list[1]); ++list) continue; return (p); } diff --git a/usr.bin/ar/replace.c b/usr.bin/ar/replace.c index 62f6975498a..2087ce65ae1 100644 --- a/usr.bin/ar/replace.c +++ b/usr.bin/ar/replace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: replace.c,v 1.3 1997/06/17 20:47:09 kstailey Exp $ */ +/* $OpenBSD: replace.c,v 1.4 1997/09/11 11:24:55 deraadt Exp $ */ /* $NetBSD: replace.c,v 1.6 1995/03/26 03:28:01 glass Exp $ */ /*- @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)replace.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: replace.c,v 1.3 1997/06/17 20:47:09 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: replace.c,v 1.4 1997/09/11 11:24:55 deraadt Exp $"; #endif #endif /* not lint */ @@ -148,7 +148,7 @@ useold: SETCF(afd, archive, curfd, tname, RPAD|WPAD); } /* Append any left-over arguments to the end of the after file. */ -append: while (file = *argv++) { +append: while ((file = *argv++)) { if (options & AR_V) (void)printf("a - %s\n", file); if ((sfd = open(file, O_RDONLY)) < 0) { |