]> diplodocus.org Git - nmh/blobdiff - uip/replsbr.c
vector.c: Move interface to own file.
[nmh] / uip / replsbr.c
index 2fadb1d10548a5a31b42a7bacd3dd34486db61d9..4c795ac846d991d9cc647a9da6cadfa4d80ebdde 100644 (file)
@@ -5,17 +5,21 @@
  * complete copyright information.
  */
 
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/addrsbr.h>
-#include <h/fmt_scan.h>
+#include "h/mh.h"
+#include "sbr/pidstatus.h"
+#include "sbr/arglist.h"
+#include "sbr/error.h"
+#include "h/addrsbr.h"
+#include "h/fmt_scan.h"
 #include "h/done.h"
 #include "h/done.h"
-#include <h/utils.h>
-#include <sys/file.h>          /* L_SET */
+#include "h/utils.h"
+#include <sys/file.h>
+#include "replsbr.h"
 
 
-extern short ccto;             /* from repl.c */
-extern short cccc;
-extern short ccme;
-extern short querysw;
+short ccto = -1;
+short cccc = -1;
+short ccme = -1;
+short querysw = 0;
 
 static int dftype=0;
 
 
 static int dftype=0;
 
@@ -483,9 +487,9 @@ replfilter (FILE *in, FILE *out, char *filter, int fmtproc)
 }
 
 
 }
 
 
-static
-char *
-fix_addresses (char *str) {
+static char *
+fix_addresses (char *str)
+{
     char *fixed_str = NULL;
     bool fixed_address = false;
 
     char *fixed_str = NULL;
     bool fixed_address = false;