From cc2c28876306b7b24eb3a5272a7ce14b03e7db46 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 11 Nov 2017 23:39:01 +0000 Subject: [PATCH] remdir.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/remdir.c | 1 + sbr/remdir.h | 7 +++++++ uip/rmf.c | 1 + 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sbr/remdir.h diff --git a/Makefile.am b/Makefile.am index 7cebda70..5909e423 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index ee96d5bc..9e4a98fa 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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); diff --git a/sbr/remdir.c b/sbr/remdir.c index d4da1cbe..63f05e94 100644 --- a/sbr/remdir.c +++ b/sbr/remdir.c @@ -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 index 00000000..f123bbb6 --- /dev/null +++ b/sbr/remdir.h @@ -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 *); diff --git a/uip/rmf.c b/uip/rmf.c index 81ec94e6..33f44762 100644 --- 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" -- 2.56.0