Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/cksum static + __dead
details: https://anonhg.NetBSD.org/src/rev/14596e2f00da
branches: trunk
changeset: 768955:14596e2f00da
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Aug 29 14:12:29 2011 +0000
description:
static + __dead
diffstat:
usr.bin/cksum/cksum.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (57 lines):
diff -r 46f30f815800 -r 14596e2f00da usr.bin/cksum/cksum.c
--- a/usr.bin/cksum/cksum.c Mon Aug 29 14:09:01 2011 +0000
+++ b/usr.bin/cksum/cksum.c Mon Aug 29 14:12:29 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cksum.c,v 1.44 2009/01/02 09:42:51 lukem Exp $ */
+/* $NetBSD: cksum.c,v 1.45 2011/08/29 14:12:29 joerg Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -81,7 +81,7 @@
#if 0
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: cksum.c,v 1.44 2009/01/02 09:42:51 lukem Exp $");
+__RCSID("$NetBSD: cksum.c,v 1.45 2011/08/29 14:12:29 joerg Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -142,9 +142,9 @@
{ .progname = NULL, },
};
-int hash_digest_file(char *, const struct hash *, int);
-void requirehash(const char *);
-void usage(void);
+static int hash_digest_file(char *, const struct hash *, int);
+__dead static void requirehash(const char *);
+__dead static void usage(void);
int
main(int argc, char **argv)
@@ -497,7 +497,7 @@
exit(rval);
}
-int
+static int
hash_digest_file(char *fn, const struct hash *hash, int normal)
{
char *cp;
@@ -516,14 +516,14 @@
return 0;
}
-void
+static void
requirehash(const char *flg)
{
warnx("%s flag requires `-a algorithm'", flg);
usage();
}
-void
+static void
usage(void)
{
const char fileargs[] = "[file ... | -c [-w] [sumfile]]";
Home |
Main Index |
Thread Index |
Old Index