]> 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 32bcb6e..c89b13e 100644 (file)
@@ -363,6 +363,7 @@ noinst_HEADERS = \
     sbr/m_mktemp.h \
     sbr/m_popen.h \
     sbr/m_rand.h \
     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 \
     thirdparty/jsmn/jsmn.h \
     uip/mhfree.h \
     uip/mhoutsbr.h \
index 452e6a1..5859d54 100644 (file)
@@ -233,7 +233,6 @@ int m_gmprot (void);
 char *m_name (int);
 
 void m_unknown(m_getfld_state_t *, FILE *);
 char *m_name (int);
 
 void m_unknown(m_getfld_state_t *, FILE *);
-int makedir (const char *);
 char *message_id (time_t, int);
 
 /*
 char *message_id (time_t, int);
 
 /*
index 589c646..a4c9820 100644 (file)
@@ -24,6 +24,7 @@
 #include <h/mh.h>                              /* mh internals */
 #include "lock_file.h"
 #include "m_maildir.h"
 #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
 #include <pwd.h>                               /* structure for getpwuid() results */
 
 void
index 165fc4f..ad48109 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <h/mh.h>
  */
 
 #include <h/mh.h>
+#include "makedir.h"
 #include <sys/file.h>
 
 int
 #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 a4cdc4f..8bd84c3 100644 (file)
@@ -9,6 +9,7 @@
 #include <h/utils.h>
 #include <h/signals.h>
 #include "m_mktemp.h"
 #include <h/utils.h>
 #include <h/signals.h>
 #include "m_mktemp.h"
+#include "makedir.h"
 #include <fcntl.h>
 
 extern char *mhdocdir;
 #include <fcntl.h>
 
 extern char *mhdocdir;
index 48bde25..9155b0a 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>                              /* mh internals */
 #include <h/utils.h>
 #include "../sbr/m_maildir.h"
 #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 \
 #include <pwd.h>                               /* structure for getpwuid() results */
 
 #define INSTALLMH_SWITCHES \
index ad50264..7e27808 100644 (file)
@@ -9,6 +9,7 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 #include <h/utils.h>
 #include <h/mime.h>
 #include <h/mhparse.h>
 #include <h/utils.h>
+#include "../sbr/makedir.h"
 
 extern int debugsw;
 
 
 extern int debugsw;
 
index 61702c4..e9654b4 100644 (file)
@@ -12,6 +12,7 @@
 #include <h/utils.h>
 #include "../sbr/m_maildir.h"
 #include "../sbr/m_mktemp.h"
 #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) \
 
 #define RCVSTORE_SWITCHES \
     X("create", 0, CRETSW) \