X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/96b4a2bc9d64b14a9dfd2b432a5de2fc17044933..63621a81d16ab743de6b57d47578a9a2c670ad22:/uip/mkstemp.c diff --git a/uip/mkstemp.c b/uip/mkstemp.c index 7dc80656..f28ccf24 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -19,14 +19,12 @@ #include #include -#include - #if ! defined HAVE_MKSTEMPS # 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: @@ -68,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; @@ -120,6 +118,7 @@ build_template(const char *directory, const char *prefix, const char *suffix) { #if NMH #include +#include #if HAVE_MKSTEMPS # define MHFIXMSG_SWITCHES \ @@ -144,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]; @@ -208,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