Module Name: src Committed By: joerg Date: Tue Aug 30 23:15:14 UTC 2011
Modified Files: src/usr.bin/crunch/crunchide: crunchide.c Log Message: static + __dead To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/usr.bin/crunch/crunchide/crunchide.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/crunch/crunchide/crunchide.c diff -u src/usr.bin/crunch/crunchide/crunchide.c:1.13 src/usr.bin/crunch/crunchide/crunchide.c:1.14 --- src/usr.bin/crunch/crunchide/crunchide.c:1.13 Thu Aug 20 17:39:51 2009 +++ src/usr.bin/crunch/crunchide/crunchide.c Tue Aug 30 23:15:14 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: crunchide.c,v 1.13 2009/08/20 17:39:51 he Exp $ */ +/* $NetBSD: crunchide.c,v 1.14 2011/08/30 23:15:14 joerg Exp $ */ /* * Copyright (c) 1997 Christopher G. Demetriou. All rights reserved. @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: crunchide.c,v 1.13 2009/08/20 17:39:51 he Exp $"); +__RCSID("$NetBSD: crunchide.c,v 1.14 2011/08/30 23:15:14 joerg Exp $"); #endif #include <unistd.h> @@ -77,14 +77,14 @@ #include "extern.h" -void usage(void); +__dead static void usage(void); -void add_to_keep_list(char *symbol); -void add_file_to_keep_list(char *filename); +static void add_to_keep_list(char *symbol); +static void add_file_to_keep_list(char *filename); -int hide_syms(const char *filename); +static int hide_syms(const char *filename); -int verbose; +static int verbose; int main(int argc, char *argv[]) @@ -124,7 +124,7 @@ return errors; } -void +static void usage(void) { fprintf(stderr, @@ -136,12 +136,12 @@ /* ---------------------------- */ -struct keep { +static struct keep { struct keep *next; char *sym; } *keep_list; -void +static void add_to_keep_list(char *symbol) { struct keep *newp, *prevp, *curp; @@ -186,7 +186,7 @@ return curp && cmp == 0; } -void +static void add_file_to_keep_list(char *filename) { FILE *keepf; @@ -210,7 +210,7 @@ /* ---------------------------- */ -struct { +static struct { const char *name; int (*check)(int, const char *); /* 1 if match, zero if not */ int (*hide)(int, const char *); /* non-zero if error */ @@ -232,7 +232,7 @@ #endif }; -int +static int hide_syms(const char *filename) { int fd, i, n, rv;