]> diplodocus.org Git - nmh/commitdiff
sbr/makedir.c: Move prototype from h/prototypes.h to new header.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 16 May 2017 09:41:35 +0000 (10:41 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 16 May 2017 09:45:53 +0000 (10:45 +0100)
Makefile.am
h/prototypes.h
sbr/context_read.c
sbr/makedir.c
sbr/makedir.h [new file with mode: 0644]
sbr/utils.c
uip/install-mh.c
uip/mhmisc.c
uip/rcvstore.c

index 32bcb6e1ea7121db48b938f36ab665ec978e0b29..c89b13e06594e38266021a3cd0f2d2c8c83d213b 100644 (file)
@@ -363,6 +363,7 @@ noinst_HEADERS = \
     sbr/m_mktemp.h \
     sbr/m_popen.h \
     sbr/m_rand.h \
+    sbr/makedir.h \
     thirdparty/jsmn/jsmn.h \
     uip/mhfree.h \
     uip/mhoutsbr.h \
index 452e6a163dc5617bfe26a0b8f7d8738b388181db..5859d54d30dbad67d3248cc57fbaa4563c935d67 100644 (file)
@@ -233,7 +233,6 @@ int m_gmprot (void);
 char *m_name (int);
 
 void m_unknown(m_getfld_state_t *, FILE *);
-int makedir (const char *);
 char *message_id (time_t, int);
 
 /*
index 589c6463dcad8d8fd8de78d4fcce9817a7140d43..a4c9820a7807f3ec5d9b158e69de70709f941f80 100644 (file)
@@ -24,6 +24,7 @@
 #include <h/mh.h>                              /* mh internals */
 #include "lock_file.h"
 #include "m_maildir.h"
+#include "makedir.h"
 #include <pwd.h>                               /* structure for getpwuid() results */
 
 void
index 165fc4f0df95aa2276100a4ea50123e9e3f7e9e7..ad481099d2d45bb88e30195cfdce2eb17dbfabd9 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <h/mh.h>
+#include "makedir.h"
 #include <sys/file.h>
 
 int
diff --git a/sbr/makedir.h b/sbr/makedir.h
new file mode 100644 (file)
index 0000000..bc56978
--- /dev/null
@@ -0,0 +1,8 @@
+/* makedir.h -- make a directory.
+ *
+ * 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 makedir(const char *dir);
index a4cdc4fcfb2e95f89cb43bbf64a962eedbf622a8..8bd84c39cd07563c4c8d4d8a9976b8257e37e3ce 100644 (file)
@@ -9,6 +9,7 @@
 #include <h/utils.h>
 #include <h/signals.h>
 #include "m_mktemp.h"
+#include "makedir.h"
 #include <fcntl.h>
 
 extern char *mhdocdir;
index 48bde2500393040c16d238563e502f56103000ae..9155b0a9b0ecd1ede4b58d8c96c7aad7f4bf235a 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>                              /* mh internals */
 #include <h/utils.h>
 #include "../sbr/m_maildir.h"
+#include "../sbr/makedir.h"
 #include <pwd.h>                               /* structure for getpwuid() results */
 
 #define INSTALLMH_SWITCHES \
index ad50264ea33256ec958b858d01eeb024d91800ac..7e278082cc452f9db49976a5251d435f62ef9a45 100644 (file)
@@ -9,6 +9,7 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 #include <h/utils.h>
+#include "../sbr/makedir.h"
 
 extern int debugsw;
 
index 61702c4807bbaa21f074eb2edded1b94ea9490e7..e9654b489b8cebb25426a06d5765f069b9073c8d 100644 (file)
@@ -12,6 +12,7 @@
 #include <h/utils.h>
 #include "../sbr/m_maildir.h"
 #include "../sbr/m_mktemp.h"
+#include "../sbr/makedir.h"
 
 #define RCVSTORE_SWITCHES \
     X("create", 0, CRETSW) \