From 000433d171b74e82024add9f11536b42c118dde3 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sun, 12 Nov 2017 13:44:34 +0000 Subject: [PATCH] sendsbr.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - uip/send.c | 1 + uip/sendsbr.c | 1 + uip/sendsbr.h | 7 +++++++ uip/viamail.c | 1 + uip/whatnowsbr.c | 1 + 7 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 uip/sendsbr.h diff --git a/Makefile.am b/Makefile.am index bf7f60c7..9a120068 100644 --- a/Makefile.am +++ b/Makefile.am @@ -464,6 +464,7 @@ noinst_HEADERS = \ uip/mhshowsbr.h \ uip/replsbr.h \ uip/scansbr.h \ + uip/sendsbr.h \ # ## diff --git a/h/prototypes.h b/h/prototypes.h index 8ee45149..b3cd49f6 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 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); int WhatNow(int, char **) NORETURN; diff --git a/uip/send.c b/uip/send.c index 6c3dc939..f29bb45f 100644 --- a/uip/send.c +++ b/uip/send.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sendsbr.h" #include "sbr/m_name.h" #include "sbr/getarguments.h" #include "sbr/read_switch_multiword.h" diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 1e0f29c5..a044a620 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sendsbr.h" #include "distsbr.h" #include "annosbr.h" #include "sbr/m_name.h" diff --git a/uip/sendsbr.h b/uip/sendsbr.h new file mode 100644 index 00000000..581ffc2a --- /dev/null +++ b/uip/sendsbr.h @@ -0,0 +1,7 @@ +/* sendsbr.h -- routines to help WhatNow/Send along + * + * 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 sendsbr(char **, int, char *, char *, struct stat *, int, const char *); diff --git a/uip/viamail.c b/uip/viamail.c index 30a6a28b..7ec3808a 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sendsbr.h" #include "sbr/m_gmprot.h" #include "sbr/getarguments.h" #include "sbr/concat.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index be3bc244..4363b894 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "sendsbr.h" #include "annosbr.h" #include "sbr/m_getfld.h" #include "sbr/getarguments.h" -- 2.56.0