summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-12 19:08:36 +0000
committerjkh <jkh@FreeBSD.org>1996-07-12 19:08:36 +0000
commit730964efd28b80be48ed35a215a362dde2b6b7a7 (patch)
treeb07c215aa55db3fb81db462f4bc70f61cd56c57f /usr.bin/ar
parentc4d4a99d31762beef936f34571330923e9300da9 (diff)
downloadFreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.zip
FreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.tar.gz
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Diffstat (limited to 'usr.bin/ar')
-rw-r--r--usr.bin/ar/append.c2
-rw-r--r--usr.bin/ar/archive.c2
-rw-r--r--usr.bin/ar/misc.c2
-rw-r--r--usr.bin/ar/replace.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ar/append.c b/usr.bin/ar/append.c
index 9bbe473..ea2e04c 100644
--- a/usr.bin/ar/append.c
+++ b/usr.bin/ar/append.c
@@ -71,7 +71,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/archive.c b/usr.bin/ar/archive.c
index 021e131..d804b97 100644
--- a/usr.bin/ar/archive.c
+++ b/usr.bin/ar/archive.c
@@ -320,7 +320,7 @@ skip_arobj(fd)
{
off_t len;
- len = chdr.size + (chdr.size + chdr.lname & 1);
+ len = chdr.size + ( (chdr.size + chdr.lname) & 1);
if (lseek(fd, len, SEEK_CUR) == (off_t)-1)
error(archive);
}
diff --git a/usr.bin/ar/misc.c b/usr.bin/ar/misc.c
index 5fef8d6..bcd9711 100644
--- a/usr.bin/ar/misc.c
+++ b/usr.bin/ar/misc.c
@@ -97,7 +97,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 a226235..b9a6cc6 100644
--- a/usr.bin/ar/replace.c
+++ b/usr.bin/ar/replace.c
@@ -141,7 +141,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) {
OpenPOWER on IntegriCloud