]> diplodocus.org Git - nmh/blobdiff - uip/replsbr.c
Use va_copy() to get a copy of va_list, instead of using original.
[nmh] / uip / replsbr.c
index 2fadb1d10548a5a31b42a7bacd3dd34486db61d9..2f26c373139d277cf2653a22219091be768fa6e2 100644 (file)
 #include "h/done.h"
 #include <h/utils.h>
 #include <sys/file.h>          /* L_SET */
+#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;
 
@@ -483,9 +484,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;