From: Ralph Corderoy Date: Mon, 28 Aug 2017 12:08:34 +0000 (+0100) Subject: Make functions with no external callers by name static. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/e65e51841a9df3df8419fef157f314c41177864f?hp=67dc75818d2a5905e09851feeb9dba23f815dd67 Make functions with no external callers by name static. --- diff --git a/sbr/escape_addresses.c b/sbr/escape_addresses.c index 11a4faa3..05c6f936 100644 --- a/sbr/escape_addresses.c +++ b/sbr/escape_addresses.c @@ -8,8 +8,7 @@ #include #include -static void -escape_component (char *name, size_t namesize, char *chars); +static void escape_component (char *name, size_t namesize, char *chars); void @@ -33,7 +32,7 @@ escape_local_part (char *name, size_t namesize) { argument is modified in place. Its size is specified by the namesize argument. The need_escape argument is a string of characters that require that name be escaped. */ -void +static void escape_component (char *name, size_t namesize, char *chars_to_escape) { /* If name contains any chars_to_escape: 1) enclose it in "" diff --git a/uip/mkstemp.c b/uip/mkstemp.c index b95de57f..f28ccf24 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -23,8 +23,8 @@ # define HAVE_MKSTEMPS 0 #endif /* ! HAVE_MKSTEMPS */ -char *build_template(const char *, const char *, const char *); -void process_args(int, char **, const char **, const char **, const char **); +static char *build_template(const char *, const char *, const char *); +static void process_args(int, char **, const char **, const char **, const char **); /* * Use a template of the form: @@ -66,7 +66,7 @@ main(int argc, char *argv[]) { } -char * +static char * build_template(const char *directory, const char *prefix, const char *suffix) { const char pattern[] = "XXXXXX"; size_t len, directory_len, pathsep_len, prefix_len, suffix_len; @@ -143,7 +143,7 @@ DEFINE_SWITCH_ENUM(MHFIXMSG); DEFINE_SWITCH_ARRAY(MHFIXMSG, switches); #undef X -void +static void process_args(int argc, char **argv, const char **directory, const char **prefix, const char **suffix) { char **argp, **arguments, *cp, buf[100]; @@ -207,7 +207,7 @@ process_args(int argc, char **argv, const char **directory, } } #else /* ! NMH */ -void +static void process_args(int argc, char **argv, const char **directory, const char **prefix, const char **suffix) { # if HAVE_MKSTEMPS