summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-09-05 21:03:36 +0000
committerhenning <henning@openbsd.org>2003-09-05 21:03:36 +0000
commit4cf580e1fc9b56e1f88f0732b0179bad00eccb93 (patch)
treed836df89e546f69088ec35da81787f16c6d9520b
parentno longer warn on '0' bound size, add new test for the negative case (diff)
downloadwireguard-openbsd-4cf580e1fc9b56e1f88f0732b0179bad00eccb93.tar.xz
wireguard-openbsd-4cf580e1fc9b56e1f88f0732b0179bad00eccb93.zip
KNF nit pointed out by theo
-rw-r--r--usr.bin/compress/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c
index 9f5a18747a4..e6e09a3702d 100644
--- a/usr.bin/compress/main.c
+++ b/usr.bin/compress/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.46 2003/09/05 20:41:48 henning Exp $ */
+/* $OpenBSD: main.c,v 1.47 2003/09/05 21:03:36 henning Exp $ */
static const char copyright[] =
"@(#) Copyright (c) 1992, 1993\n\
@@ -37,7 +37,7 @@ static const char license[] =
#if 0
static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94";
#else
-static const char main_rcsid[] = "$OpenBSD: main.c,v 1.46 2003/09/05 20:41:48 henning Exp $";
+static const char main_rcsid[] = "$OpenBSD: main.c,v 1.47 2003/09/05 21:03:36 henning Exp $";
#endif
#endif /* not lint */
@@ -366,8 +366,8 @@ main(int argc, char *argv[])
rc = rc ? rc : WARNING;
continue;
default:
- if (!S_ISREG(entry->fts_statp->st_mode) && !pipin
- && !(S_ISLNK(entry->fts_statp->st_mode) && cat)) {
+ if (!S_ISREG(entry->fts_statp->st_mode) && !pipin &&
+ !(S_ISLNK(entry->fts_statp->st_mode) && cat)) {
warnx("%s not a regular file%s",
infile, cat ? "" : ": unchanged");
rc = rc ? rc : WARNING;