diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
| commit | 526195ad0da110e4a8a5315ec86dddc8e179c06f (patch) | |
| tree | b07c215aa55db3fb81db462f4bc70f61cd56c57f /usr.bin/ar | |
| parent | 51295a4d3e4c551df85249433c490208dc7fd23d (diff) | |
Notes
Diffstat (limited to 'usr.bin/ar')
| -rw-r--r-- | usr.bin/ar/append.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/archive.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/misc.c | 2 | ||||
| -rw-r--r-- | usr.bin/ar/replace.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ar/append.c b/usr.bin/ar/append.c index 9bbe473eddbe..ea2e04c64b07 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 021e13131adf..d804b974999b 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 5fef8d6a2fb2..bcd97118be22 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 a22623580a20..b9a6cc6dc7c5 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) { |
