]> diplodocus.org Git - nmh/commitdiff
popsbr.c: Add `static' to function definitions to match prototypes.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 23:58:29 +0000 (23:58 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 16 Nov 2017 00:03:50 +0000 (00:03 +0000)
parse_proxy(), command(), and multiline() all have prototypes claiming
they're static in popsbr.c, but their later definitions lack that
qualifier.

uip/popsbr.c

index 02e10e6..a692339 100644 (file)
@@ -85,7 +85,7 @@ check_mech(char *server_mechs, size_t server_mechs_size)
  * suitable for passing to exec. Returned array must be freed. Shouldn't
  * be possible to call this with host set to NULL.
  */
-char **
+static char **
 parse_proxy(char *proxy, char *host)
 {
     char **pargv, **p;
@@ -558,7 +558,7 @@ pop_done (void)
 }
 
 
-int
+static int
 command(const char *fmt, ...)
 {
     va_list ap;
@@ -618,7 +618,7 @@ vcommand (const char *fmt, va_list ap)
 }
 
 
-int
+static int
 multiline (void)
 {
     char buffer[BUFSIZ + LEN(TRM)];