]> diplodocus.org Git - nmh/commitdiff
push.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 3 Nov 2017 00:14:20 +0000 (00:14 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:26 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/push.c
sbr/push.h [new file with mode: 0644]
uip/send.c
uip/whatnowsbr.c

index 323abac..4eead6f 100644 (file)
@@ -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 \
index 4cf3a44..b02675a 100644 (file)
@@ -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 *);
index d014f18..5417f39 100644 (file)
@@ -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 (file)
index 0000000..58ce89e
--- /dev/null
@@ -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);
index 1467be8..d5ac70e 100644 (file)
@@ -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"
index 857d179..9bfda0f 100644 (file)
@@ -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"