]> diplodocus.org Git - nmh/commitdiff
remdir.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 23:39:01 +0000 (23:39 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:33 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/remdir.c
sbr/remdir.h [new file with mode: 0644]
uip/rmf.c

index 7cebda7..5909e42 100644 (file)
@@ -417,6 +417,7 @@ noinst_HEADERS = \
     sbr/push.h \
     sbr/read_line.h \
     sbr/readconfig.h \
+    sbr/remdir.h \
     sbr/seq_add.h \
     sbr/seq_bits.h \
     sbr/seq_del.h \
index ee96d5b..9e4a98f 100644 (file)
@@ -83,7 +83,6 @@ void ruserpass (const char *host, char **aname, char **apass, int flags);
 #define RUSERPASS_NO_PROMPT_USER       0x01
 #define RUSERPASS_NO_PROMPT_PASSWORD   0x02
 
-int remdir (char *);
 void scan_detect_mbox_style (FILE *);
 void scan_finished(void);
 
index d4da1cb..63f05e9 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "remdir.h"
 #include "context_save.h"
 #include "error.h"
 
diff --git a/sbr/remdir.h b/sbr/remdir.h
new file mode 100644 (file)
index 0000000..f123bbb
--- /dev/null
@@ -0,0 +1,7 @@
+/* remdir.h -- remove 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 remdir(char *);
index 81ec94e..33f4476 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/remdir.h"
 #include "sbr/ssequal.h"
 #include "sbr/m_atoi.h"
 #include "sbr/getfolder.h"