From: Ralph Corderoy Date: Fri, 3 Nov 2017 00:14:20 +0000 (+0000) Subject: push.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/0d6615596f998269754a1861f030ebc22092a84c?ds=sidebyside push.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 323abac5..4eead6f9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -378,6 +378,7 @@ noinst_HEADERS = \ sbr/print_help.h \ sbr/print_sw.h \ sbr/print_version.h \ + sbr/push.h \ sbr/read_line.h \ sbr/seq_add.h \ sbr/seq_bits.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 4cf3a44b..b02675af 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -173,7 +173,6 @@ void m_unknown2(m_getfld_state_t *); char *nmh_getpass(const char *); int pidwait (pid_t, int); int pidstatus (int, FILE *, char *); -void push (void); char *r1bindex(char *, int) PURE; void readconfig (struct node **, FILE *, const char *, int); int refile (char **, char *); diff --git a/sbr/push.c b/sbr/push.c index d014f188..5417f390 100644 --- a/sbr/push.c +++ b/sbr/push.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "push.h" #include "error.h" #include "h/signals.h" #include "h/done.h" diff --git a/sbr/push.h b/sbr/push.h new file mode 100644 index 00000000..58ce89e9 --- /dev/null +++ b/sbr/push.h @@ -0,0 +1,7 @@ +/* push.h -- push a fork into the background + * + * 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 push(void); diff --git a/uip/send.c b/uip/send.c index 1467be89..d5ac70e5 100644 --- a/uip/send.c +++ b/uip/send.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/push.h" #include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 857d1792..9bfda0fe 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "sbr/push.h" #include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h"