From: Ralph Corderoy Date: Sun, 12 Nov 2017 13:38:49 +0000 (+0000) Subject: mhlsbr.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/cdd57a5af1ff4d39840705ed19f7e77fc9908151?hp=1df12c32a2bcfd3113363be78440f59b270d51dc mhlsbr.c: Move interface to own file. --- 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"