Date: Thu, 19 Aug 2021 17:48:40 GMT From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7ff87026d65c - main - crunchide: static'ify remaining non-exported functions Message-ID: <202108191748.17JHmep3043801@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=7ff87026d65c77f90391ead3f2fc752223d16e01 commit 7ff87026d65c77f90391ead3f2fc752223d16e01 Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2021-08-19 06:29:02 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2021-08-19 17:47:32 +0000 crunchide: static'ify remaining non-exported functions Reviewed by: arichardson, imp Differential Revision: https://reviews.freebsd.org/D31609 --- usr.sbin/crunch/crunchide/crunchide.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/crunch/crunchide/crunchide.c b/usr.sbin/crunch/crunchide/crunchide.c index 324402501491..1f2f98893bac 100644 --- a/usr.sbin/crunch/crunchide/crunchide.c +++ b/usr.sbin/crunch/crunchide/crunchide.c @@ -78,12 +78,12 @@ __FBSDID("$FreeBSD$"); static const char *pname = "crunchide"; -void usage(void); +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); static int verbose; @@ -126,7 +126,7 @@ main(int argc, char **argv) return errors; } -void +static void usage(void) { fprintf(stderr, @@ -142,7 +142,7 @@ static struct keep { char *sym; } *keep_list; -void +static void add_to_keep_list(char *symbol) { struct keep *newp, *prevp, *curp; @@ -182,7 +182,7 @@ in_keep_list(const char *symbol) return curp && cmp == 0; } -void +static void add_file_to_keep_list(char *filename) { FILE *keepf; @@ -219,7 +219,7 @@ static struct { #endif }; -int +static int hide_syms(const char *filename) { int fd, i, n, rv;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108191748.17JHmep3043801>