summaryrefslogtreecommitdiff
path: root/usr.bin/cksum
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-10-18 20:47:06 +0000
committerchristos <christos@NetBSD.org>2013-10-18 20:47:06 +0000
commited7f0ec9cc641460e39fd2c57c2e269407615227 (patch)
tree5c8975a1cee405db9a834fb7d3ab401a56cf258c /usr.bin/cksum
parent826b1fe244b2eaaf5d43428a0df61f8e26860db6 (diff)
fix unused variable warnings
Diffstat (limited to 'usr.bin/cksum')
-rw-r--r--usr.bin/cksum/cksum.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/cksum/cksum.c b/usr.bin/cksum/cksum.c
index b0ef4434362..77db3bcf3d4 100644
--- a/usr.bin/cksum/cksum.c
+++ b/usr.bin/cksum/cksum.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cksum.c,v 1.45 2011/08/29 14:12:29 joerg Exp $ */
+/* $NetBSD: cksum.c,v 1.46 2013/10/18 20:47:06 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\
#if 0
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: cksum.c,v 1.45 2011/08/29 14:12:29 joerg Exp $");
+__RCSID("$NetBSD: cksum.c,v 1.46 2013/10/18 20:47:06 christos Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -149,7 +149,7 @@ __dead static void usage(void);
int
main(int argc, char **argv)
{
- int ch, fd, rval, dosum, pflag, nohashstdin;
+ int ch, fd, rval, pflag, nohashstdin;
u_int32_t val;
off_t len;
char *fn;
@@ -161,7 +161,7 @@ main(int argc, char **argv)
cfncn = NULL;
pfncn = NULL;
- dosum = pflag = nohashstdin = 0;
+ pflag = nohashstdin = 0;
normal = 0;
check_warn = 0;
do_check = 0;
@@ -178,7 +178,6 @@ main(int argc, char **argv)
hash = NULL;
if (!strcmp(progname, "sum")) {
- dosum = 1;
cfncn = csum1;
pfncn = psum1;
} else {