From 5ceec6ea91087584eb7aa20e9ce6671c243770e1 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sun, 12 Nov 2017 13:42:01 +0000 Subject: [PATCH] distsbr.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - uip/distsbr.c | 1 + uip/distsbr.h | 7 +++++++ uip/rcvdist.c | 1 + uip/sendsbr.c | 1 + uip/whom.c | 1 + 7 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 uip/distsbr.h diff --git a/Makefile.am b/Makefile.am index 9db7de93..bf7f60c7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -455,6 +455,7 @@ noinst_HEADERS = \ sbr/vfgets.h \ thirdparty/jsmn/jsmn.h \ uip/annosbr.h \ + uip/distsbr.h \ uip/forwsbr.h \ uip/mhfree.h \ uip/mhlsbr.h \ diff --git a/h/prototypes.h b/h/prototypes.h index dad46e39..8ee45149 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -21,7 +21,6 @@ int pidwait (pid_t, int); * prototypes for some routines in uip */ int mhlsbr(int, char **, FILE *(*)(char *)); -int distout (char *, char *, char *); int sendsbr (char **, int, char *, char *, struct stat *, int, const char *); int what_now (char *, int, int, char *, char *, int, struct msgs *, char *, int, char *, int); diff --git a/uip/distsbr.c b/uip/distsbr.c index d3e7d7d0..d0db94b2 100644 --- a/uip/distsbr.c +++ b/uip/distsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "distsbr.h" #include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/cpydata.h" diff --git a/uip/distsbr.h b/uip/distsbr.h new file mode 100644 index 00000000..0c2a2eed --- /dev/null +++ b/uip/distsbr.h @@ -0,0 +1,7 @@ +/* distsbr.h -- routines to do additional "dist-style" processing + * + * 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 distout(char *, char *, char *); diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 66211f80..3a5a3481 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "distsbr.h" #include "sbr/m_gmprot.h" #include "sbr/m_getfld.h" #include "sbr/getarguments.h" diff --git a/uip/sendsbr.c b/uip/sendsbr.c index dce78ba8..1e0f29c5 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "distsbr.h" #include "annosbr.h" #include "sbr/m_name.h" #include "sbr/m_getfld.h" diff --git a/uip/whom.c b/uip/whom.c index 9b03e162..ca94d3e1 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "distsbr.h" #include "sbr/getarguments.h" #include "sbr/smatch.h" #include "sbr/closefds.h" -- 2.56.0