crunchide: static'ify remaining non-exported functions

Reviewed by:	arichardson, imp
Differential Revision:	https://reviews.freebsd.org/D31609
This commit is contained in:
Kyle Evans 2021-08-19 01:29:02 -05:00
parent dd7c7ff192
commit 7ff87026d6

View File

@ -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;