From: Ralph Corderoy Date: Sat, 11 Nov 2017 17:21:17 +0000 (+0000) Subject: cpydgst.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/603eca2a1490d6917c12353af65651b7492110fb cpydgst.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index ecd116d9..6db5c223 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/cpydgst.h \ sbr/ctype-checked.h \ sbr/discard.h \ sbr/error.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 7eb5d759..3bf5a994 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -20,7 +20,6 @@ void closefds(int); char *concat (const char *, ...) ENDNULL; char **copyip (char **, char **, int); void cpydata (int, int, const char *, const char *); -void cpydgst (int, int, char *, char *); int decode_rfc2047 (char *, char *, size_t); /* diff --git a/sbr/cpydgst.c b/sbr/cpydgst.c index 60dc78a8..4878e8fe 100644 --- a/sbr/cpydgst.c +++ b/sbr/cpydgst.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "cpydgst.h" #include "error.h" /* diff --git a/sbr/cpydgst.h b/sbr/cpydgst.h new file mode 100644 index 00000000..c19c8d38 --- /dev/null +++ b/sbr/cpydgst.h @@ -0,0 +1,8 @@ +/* cpydgst.h -- copy from one fd to another in encapsulating mode + * -- (do dashstuffing of input data). + * + * 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. */ + +void cpydgst(int, int, char *, char *); diff --git a/uip/forw.c b/uip/forw.c index 84c94c13..2482a1c3 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/cpydgst.h" #include "sbr/m_draft.h" #include "sbr/m_convert.h" #include "sbr/getfolder.h" diff --git a/uip/post.c b/uip/post.c index 80802fb1..e85708d6 100644 --- a/uip/post.c +++ b/uip/post.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/cpydgst.h" #include "sbr/uprf.h" #include "sbr/context_foil.h" #include "sbr/readconfig.h" diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 0e773e7a..5a743656 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/cpydgst.h" #include "sbr/trimcpy.h" #include "sbr/uprf.h" #include "sbr/getcpy.h"