summaryrefslogtreecommitdiff
path: root/usr.bin/wc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-12 05:17:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-12 05:17:34 +0000
commit937c9a0f84db15a0a64ed0419a42da3a34d96cde (patch)
treeb6b3bfb6f6bbc506426154fc8294316054abb45f /usr.bin/wc
parent4e5dd980fd1238d635621b9bba7d99533aababd6 (diff)
first pass at a -Wall cleanup
Diffstat (limited to 'usr.bin/wc')
-rw-r--r--usr.bin/wc/wc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c
index 2b267a1f51e..ec885181607 100644
--- a/usr.bin/wc/wc.c
+++ b/usr.bin/wc/wc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wc.c,v 1.4 1999/02/02 03:48:34 millert Exp $ */
+/* $OpenBSD: wc.c,v 1.5 2001/07/12 05:17:31 deraadt Exp $ */
/*
* Copyright (c) 1980, 1987, 1991, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)wc.c 8.2 (Berkeley) 5/2/95";
#else
-static char rcsid[] = "$OpenBSD: wc.c,v 1.4 1999/02/02 03:48:34 millert Exp $";
+static char rcsid[] = "$OpenBSD: wc.c,v 1.5 2001/07/12 05:17:31 deraadt Exp $";
#endif
#endif /* not lint */
@@ -252,11 +252,11 @@ print_counts(lines, words, chars, name)
{
if (doline)
- (void)printf(" %7qd", lines);
+ (void)printf(" %7lld", (long long)lines);
if (doword)
- (void)printf(" %7qd", words);
+ (void)printf(" %7lld", (long long)words);
if (dochar)
- (void)printf(" %7qd", chars);
+ (void)printf(" %7lld", (long long)chars);
(void)printf(" %s\n", name);
}