]> diplodocus.org Git - nmh/commitdiff
copyip.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 11 Nov 2017 17:25:55 +0000 (17:25 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:32 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/copyip.c
sbr/copyip.h [new file with mode: 0644]
uip/mhbuildsbr.c
uip/mhlsbr.c
uip/whatnowsbr.c

index 8dad031..db059e0 100644 (file)
@@ -374,6 +374,7 @@ noinst_HEADERS = \
     sbr/context_read.h \
     sbr/context_replace.h \
     sbr/context_save.h \
+    sbr/copyip.h \
     sbr/cpydata.h \
     sbr/cpydgst.h \
     sbr/ctype-checked.h \
index 4b5e0b7..7c425e9 100644 (file)
@@ -18,7 +18,6 @@ struct msgs_array;
 int client(char *, char *, char *, int, int);
 void closefds(int);
 char *concat (const char *, ...) ENDNULL;
-char **copyip (char **, char **, int);
 int decode_rfc2047 (char *, char *, size_t);
 
 /*
index c6ba24d..c72bb9f 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "copyip.h"
 
 
 char **
diff --git a/sbr/copyip.h b/sbr/copyip.h
new file mode 100644 (file)
index 0000000..8e00044
--- /dev/null
@@ -0,0 +1,7 @@
+/* copyip.h -- copy a string array and return pointer to end
+ *
+ * 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. */
+
+char **copyip(char **, char **, int);
index 68a3598..b7792a2 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/copyip.h"
 #include "sbr/cpydata.h"
 #include "sbr/trimcpy.h"
 #include "sbr/uprf.h"
index 0225759..cd25abe 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/copyip.h"
 #include "sbr/discard.h"
 #include "sbr/trimcpy.h"
 #include "sbr/vfgets.h"
index f405721..ad919c2 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/copyip.h"
 #include "sbr/getcpy.h"
 #include "sbr/m_draft.h"
 #include "sbr/m_backup.h"