From: Ralph Corderoy Date: Tue, 7 Nov 2017 00:10:06 +0000 (+0000) Subject: atooi.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/0b05f0175b632c856ea4a2c4ae10c84694a1f385?ds=sidebyside atooi.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index fbfaa25b..2fabf7c8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -364,6 +364,7 @@ noinst_HEADERS = \ mts/smtp/smtp.h \ sbr/ambigsw.h \ sbr/arglist.h \ + sbr/atooi.h \ sbr/base64.h \ sbr/ctype-checked.h \ sbr/error.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 04bb9c20..80d0cb6b 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -16,7 +16,6 @@ char *etcpath(char *) NONNULL(1); struct msgs_array; void add_profile_entry (const char *, const char *); -int atooi(char *) NONNULL(1) PURE; char **brkstring (char *, char *, char *) NONNULL(1); /* diff --git a/sbr/atooi.c b/sbr/atooi.c index b8b064a9..e06e1b4e 100644 --- a/sbr/atooi.c +++ b/sbr/atooi.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "atooi.h" int diff --git a/sbr/atooi.h b/sbr/atooi.h new file mode 100644 index 00000000..b667b83d --- /dev/null +++ b/sbr/atooi.h @@ -0,0 +1,7 @@ +/* atooi.h -- octal version of atoi() + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +int atooi(char *) NONNULL(1) PURE; diff --git a/sbr/m_gmprot.c b/sbr/m_gmprot.c index 249a28ab..a3690143 100644 --- a/sbr/m_gmprot.c +++ b/sbr/m_gmprot.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "atooi.h" int diff --git a/sbr/makedir.c b/sbr/makedir.c index 10c46b1f..4f3c5cef 100644 --- a/sbr/makedir.c +++ b/sbr/makedir.c @@ -10,6 +10,7 @@ */ #include "h/mh.h" +#include "atooi.h" #include "error.h" #include "makedir.h" #include