]> diplodocus.org Git - nmh/commitdiff
atooi.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 7 Nov 2017 00:10:06 +0000 (00:10 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:27 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/atooi.c
sbr/atooi.h [new file with mode: 0644]
sbr/m_gmprot.c
sbr/makedir.c

index fbfaa25..2fabf7c 100644 (file)
@@ -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 \
index 04bb9c2..80d0cb6 100644 (file)
@@ -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);
 
 /*
index b8b064a..e06e1b4 100644 (file)
@@ -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 (file)
index 0000000..b667b83
--- /dev/null
@@ -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;
index 249a28a..a369014 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "atooi.h"
 
 
 int
index 10c46b1..4f3c5ce 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include "h/mh.h"
+#include "atooi.h"
 #include "error.h"
 #include "makedir.h"
 #include <sys/file.h>