From cdd57a5af1ff4d39840705ed19f7e77fc9908151 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sun, 12 Nov 2017 13:38:49 +0000 Subject: [PATCH] mhlsbr.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - uip/mhl.c | 1 + uip/mhlsbr.c | 1 + uip/mhlsbr.h | 7 +++++++ uip/show.c | 1 + 6 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 uip/mhlsbr.h diff --git a/Makefile.am b/Makefile.am index e25ca9b1..9db7de93 100644 --- a/Makefile.am +++ b/Makefile.am @@ -457,6 +457,7 @@ noinst_HEADERS = \ uip/annosbr.h \ uip/forwsbr.h \ uip/mhfree.h \ + uip/mhlsbr.h \ uip/mhmisc.h \ uip/mhoutsbr.h \ uip/mhshowsbr.h \ diff --git a/h/prototypes.h b/h/prototypes.h index aad07574..dad46e39 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -20,7 +20,6 @@ int pidwait (pid_t, int); /* * prototypes for some routines in uip */ -int mhl(int, char **); int mhlsbr(int, char **, FILE *(*)(char *)); int distout (char *, char *, char *); int sendsbr (char **, int, char *, char *, struct stat *, int, const char *); diff --git a/uip/mhl.c b/uip/mhl.c index c3b12e51..263abe72 100644 --- a/uip/mhl.c +++ b/uip/mhl.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "mhlsbr.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 8d532e35..9af4b8e6 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "mhlsbr.h" #include "sbr/m_getfld.h" #include "sbr/getarguments.h" #include "sbr/concat.h" diff --git a/uip/mhlsbr.h b/uip/mhlsbr.h new file mode 100644 index 00000000..d9a1f042 --- /dev/null +++ b/uip/mhlsbr.h @@ -0,0 +1,7 @@ +/* mhlsbr.h -- main routines for nmh message lister + * + * 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 mhl(int, char **); diff --git a/uip/show.c b/uip/show.c index 004a2921..699b77b0 100644 --- a/uip/show.c +++ b/uip/show.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "mhlsbr.h" #include "sbr/m_name.h" #include "sbr/m_getfld.h" #include "sbr/getarguments.h" -- 2.56.0