]> diplodocus.org Git - nmh/commitdiff
Make functions with no external callers by name static.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 28 Aug 2017 12:08:34 +0000 (13:08 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 28 Aug 2017 12:08:34 +0000 (13:08 +0100)
sbr/escape_addresses.c
uip/mkstemp.c

index 11a4faa33e7fb1ee0bf8b24d333145240044ea26..05c6f9365def246518e07e8404a1f5ac8611460d 100644 (file)
@@ -8,8 +8,7 @@
 #include <h/mh.h>
 #include <h/utils.h>
 
-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 ""
index b95de57f54c0aed91e9c976e360e3c20233219d4..f28ccf242a1b68d349bc1c807b5abd7fdb14e2c0 100644 (file)
@@ -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