#include <string.h>
#include <stdio.h>
-#include <h/utils.h>
-
#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:
}
-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;
#if NMH
#include <h/mh.h>
+#include <h/utils.h>
#if HAVE_MKSTEMPS
# define MHFIXMSG_SWITCHES \
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];
}
}
#else /* ! NMH */
-void
+static void
process_args(int argc, char **argv, const char **directory,
const char **prefix, const char **suffix) {
# if HAVE_MKSTEMPS