]> diplodocus.org Git - nmh/blobdiff - uip/replsbr.c
Display the command when reporting timing.
[nmh] / uip / replsbr.c
index b5e10827d3e2f2b7affe6b4a3b8688e57c0657b6..46742e66a1d8d9c55ab0a46c797fa6632796bdc4 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <h/addrsbr.h>
 #include <h/fmt_scan.h>
 #include <h/mh.h>
 #include <h/addrsbr.h>
 #include <h/fmt_scan.h>
+#include "h/done.h"
 #include <h/utils.h>
 #include <sys/file.h>          /* L_SET */
 
 #include <h/utils.h>
 #include <sys/file.h>          /* L_SET */
 
@@ -22,7 +23,7 @@ static char *badaddrs = NULL;
 static char *dfhost = NULL;
 
 static struct mailname mq;
 static char *dfhost = NULL;
 
 static struct mailname mq;
-static int nodupcheck = 0;             /* If set, no check for duplicates */
+static bool nodupcheck;                /* If set, no check for duplicates */
 
 static char *addrcomps[] = {
     "from",
 
 static char *addrcomps[] = {
     "from",
@@ -148,7 +149,7 @@ replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen,
                goto finished;
 
            default:
                goto finished;
 
            default:
-               adios (NULL, "m_getfld2() returned %d", state);
+               die("m_getfld2() returned %d", state);
        }
     }
 
        }
     }
 
@@ -345,7 +346,7 @@ replformataddr (char *orig, char *str)
 
     *dst = '\0';
     last_dst = dst;
 
     *dst = '\0';
     last_dst = dst;
-    return (buf);
+    return buf;
 }
 
 
 }
 
 
@@ -366,9 +367,9 @@ replconcataddr(char *orig, char *str)
 {
     char *cp;
 
 {
     char *cp;
 
-    nodupcheck = 1;
+    nodupcheck = true;
     cp = replformataddr(orig, str);
     cp = replformataddr(orig, str);
-    nodupcheck = 0;
+    nodupcheck = false;
     return cp;
 }
 
     return cp;
 }
 
@@ -470,7 +471,7 @@ replfilter (FILE *in, FILE *out, char *filter, int fmtproc)
                write(2, "\n", 1) < 0) {
                advise ("stderr", "write");
            }
                write(2, "\n", 1) < 0) {
                advise ("stderr", "write");
            }
-           _exit (-1);
+           _exit(1);
 
        default:
            if (pidXwait (pid, mhl))
 
        default:
            if (pidXwait (pid, mhl))
@@ -486,7 +487,7 @@ static
 char *
 fix_addresses (char *str) {
     char *fixed_str = NULL;
 char *
 fix_addresses (char *str) {
     char *fixed_str = NULL;
-    int fixed_address = 0;
+    bool fixed_address = false;
 
     if (str) {
         /*
 
     if (str) {
         /*
@@ -563,7 +564,7 @@ fix_addresses (char *str) {
                 adr = getname (new_adr);
                 if (adr != NULL  &&
                     (mp = getm (adr, dfhost, dftype, NULL, 0)) != NULL) {
                 adr = getname (new_adr);
                 if (adr != NULL  &&
                     (mp = getm (adr, dfhost, dftype, NULL, 0)) != NULL) {
-                    fixed_address = 1;
+                    fixed_address = true;
                     mnfree (mp);
                 }
                 free (angle_addr);
                     mnfree (mp);
                 }
                 free (angle_addr);