]> diplodocus.org Git - nmh/blobdiff - uip/fmttest.c
Make snoop work like it used to for SMTP.
[nmh] / uip / fmttest.c
index 78f08561fcd56ecdbe85ff8771b09b83268d43a0..9a569ae41b8e06e6b8065ef5b00c07e2e6de07ae 100644 (file)
@@ -11,6 +11,7 @@
 #include <h/utils.h>
 #include <h/scansbr.h>
 #include <h/addrsbr.h>
+#include "h/done.h"
 #include "sbr/m_maildir.h"
 #include "sbr/terminal.h"
 
@@ -982,8 +983,8 @@ findlabel(struct format *addr)
 
        for (i = 0; i < lused; ++i)
                if (addr == lvec[i])
-                       return(i);
-       return(-1);
+                       return i;
+       return -1;
 }
 
 static void
@@ -1101,7 +1102,7 @@ f_typestr(int t)
        case FT_V_AMATCH: return "V_AMATCH";
        default:
                snprintf(buf, sizeof(buf), "/* ??? #%d */", t);
-               return(buf);
+               return buf;
        }
 }
 
@@ -1111,7 +1112,7 @@ c_typestr(int t)
        static char buf[64];
 
        snprintb(buf, sizeof(buf), t, CT_BITS);
-       return(buf);
+       return buf;
 }
 
 static char *
@@ -1120,7 +1121,7 @@ c_flagsstr(int t)
        static char buf[64];
 
        snprintb(buf, sizeof(buf), t, CF_BITS);
-       return(buf);
+       return buf;
 }
 
 static void
@@ -1269,7 +1270,7 @@ test_formataddr (char *orig, char *str)
 
     *dst = '\0';
     last_dst = dst;
-    return (buf);
+    return buf;
 }