From: Ralph Corderoy Date: Mon, 15 May 2017 17:39:45 +0000 (+0100) Subject: h/utils.h: Move in nmh_init() prototype from h/prototypes.h. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c25e555e6ffca87394f2dee5e4090406a6e45259?ds=sidebyside;hp=--cc h/utils.h: Move in nmh_init() prototype from h/prototypes.h. --- c25e555e6ffca87394f2dee5e4090406a6e45259 diff --git a/h/prototypes.h b/h/prototypes.h index 28d21f0b..9f8dc2ea 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -543,14 +543,3 @@ const char *nmh_cred_get_password(nmh_creds_t creds); * Free an allocated nmh_creds structure. */ void nmh_credentials_free(nmh_creds_t creds); - -/* - * program initialization - * - * argv0 - argv[0], presumably the program name - * read_context - 0: don't read context - * - 1: read context, check nmh version, and issue warning message - * if non-existent or old - * - 2: read context, don't check nmh version - */ -int nmh_init(const char *argv0, int read_context); diff --git a/h/utils.h b/h/utils.h index c5991f42..56dec309 100644 --- a/h/utils.h +++ b/h/utils.h @@ -98,6 +98,16 @@ int contains8bit(const char *start, const char *end); */ int scan_input (int fd, int *eightbit); +/* + * program initialization + * + * argv0 - argv[0], presumably the program name + * read_context - 0: don't read context + * - 1: read context, check nmh version, and issue warning message + * if non-existent or old + * - 2: read context, don't check nmh version + */ +int nmh_init(const char *argv0, int read_context); /* * Compares prior version of nmh with current version. Returns 1 diff --git a/uip/fmtdump.c b/uip/fmtdump.c index 12e2391a..6a6ef7cb 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -9,6 +9,7 @@ #include #include #include +#include #define FMTDUMP_SWITCHES \ X("form formatfile", 0, FORMSW) \ diff --git a/uip/mhl.c b/uip/mhl.c index 59c233dd..ea7a244c 100644 --- a/uip/mhl.c +++ b/uip/mhl.c @@ -6,6 +6,7 @@ */ #include +#include int diff --git a/uip/mhparam.c b/uip/mhparam.c index 14988847..17705bc8 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -10,6 +10,7 @@ #include #include +#include #define MHPARAM_SWITCHES \ X("components", 0, COMPSW) \ diff --git a/uip/mkstemp.c b/uip/mkstemp.c index ac34c752..b7acbb14 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -15,9 +15,12 @@ #endif /* HAVE_CONFIG_H */ #include #include +#include #include #include +#include + #if ! defined HAVE_MKSTEMPS # define HAVE_MKSTEMPS 0 #endif /* ! HAVE_MKSTEMPS */ diff --git a/uip/msgchk.c b/uip/msgchk.c index 44d93528..3bc7f230 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include diff --git a/uip/prompter.c b/uip/prompter.c index 0532c219..cdab14e3 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "../sbr/m_mktemp.h" #include diff --git a/uip/rcvpack.c b/uip/rcvpack.c index 9215b00e..6235e5e9 100644 --- a/uip/rcvpack.c +++ b/uip/rcvpack.c @@ -10,6 +10,7 @@ #include #include #include +#include #define RCVPACK_SWITCHES \ X("mbox", 0, MBOXSW) \ diff --git a/uip/rcvstore.c b/uip/rcvstore.c index bb07856e..7e22d0af 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "../sbr/m_mktemp.h" #define RCVSTORE_SWITCHES \ diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 3b837081..0c717b45 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "../sbr/m_mktemp.h" #include diff --git a/uip/viamail.c b/uip/viamail.c index e7af7706..3c92f5fd 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "../sbr/m_mktemp.h" #define VIAMAIL_SWITCHES \ diff --git a/uip/whatnow.c b/uip/whatnow.c index 4fffddb9..86a17f93 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -6,6 +6,7 @@ */ #include +#include int