summaryrefslogtreecommitdiff
path: root/usr.bin/tip/cmds.c
diff options
context:
space:
mode:
authorHugh Graham <hugh@cvs.openbsd.org>2002-05-07 06:56:51 +0000
committerHugh Graham <hugh@cvs.openbsd.org>2002-05-07 06:56:51 +0000
commit5fcb27f03fdf210a89994f91add3c1031058f932 (patch)
tree373dd6e0679b53863a5fc8ae3b922ebcc438f4f3 /usr.bin/tip/cmds.c
parent15698012b155ed03b2a424a53e8320d8b9eaae6c (diff)
Carefully applied -Wall fixups from <panda@omatis.com>.
Also a little KNF.
Diffstat (limited to 'usr.bin/tip/cmds.c')
-rw-r--r--usr.bin/tip/cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/cmds.c b/usr.bin/tip/cmds.c
index 07d7f51f08d..3fc7dbd30b9 100644
--- a/usr.bin/tip/cmds.c
+++ b/usr.bin/tip/cmds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmds.c,v 1.13 2001/10/24 18:38:58 millert Exp $ */
+/* $OpenBSD: cmds.c,v 1.14 2002/05/07 06:56:50 hugh Exp $ */
/* $NetBSD: cmds.c,v 1.7 1997/02/11 09:24:03 mrg Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: cmds.c,v 1.13 2001/10/24 18:38:58 millert Exp $";
+static const char rcsid[] = "$OpenBSD: cmds.c,v 1.14 2002/05/07 06:56:50 hugh Exp $";
#endif /* not lint */
#include "tip.h"
@@ -735,7 +735,7 @@ prtime(s, a)
}
printf("%s", s);
while (--i >= 0)
- if (nums[i] || i == 0 && nums[1] == 0 && nums[2] == 0)
+ if (nums[i] || (i == 0 && nums[1] == 0 && nums[2] == 0))
printf("%d %s%c ", nums[i], sep[i],
nums[i] == 1 ? '\0' : 's');
printf("\r\n!\r\n");