From: Ralph Corderoy Date: Sat, 11 Nov 2017 17:25:55 +0000 (+0000) Subject: copyip.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/803acc9a20d6399d536980e815729c12334a0821 copyip.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 8dad031a..db059e07 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index 4b5e0b79..7c425e9a 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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); /* diff --git a/sbr/copyip.c b/sbr/copyip.c index c6ba24d1..c72bb9f7 100644 --- a/sbr/copyip.c +++ b/sbr/copyip.c @@ -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 index 00000000..8e000443 --- /dev/null +++ b/sbr/copyip.h @@ -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); diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 68a35981..b7792a2c 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/copyip.h" #include "sbr/cpydata.h" #include "sbr/trimcpy.h" #include "sbr/uprf.h" diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 02257598..cd25abe5 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/copyip.h" #include "sbr/discard.h" #include "sbr/trimcpy.h" #include "sbr/vfgets.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index f4057211..ad919c20 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -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"