]> diplodocus.org Git - nmh/blobdiff - uip/ap.c
Replace printf("%s\n", foo) and similar with puts(foo).
[nmh] / uip / ap.c
index ea93fd6f78584492063ba6f6adfbdaaa726c9d5e..1d1ee522f74b44ea18623f5d67d6b26c5a924f5d 100644 (file)
--- a/uip/ap.c
+++ b/uip/ap.c
@@ -10,6 +10,7 @@
 #include <h/fmt_scan.h>
 #include <h/mts.h>
 #include <h/utils.h>
+#include "sbr/terminal.h"
 
 #define        NADDRS  100
 
@@ -127,7 +128,7 @@ main (int argc, char **argv)
        status += process (addrs[addrp], width);
 
     fmt_free (fmt, 1);
-    done (status);
+    done(!!status);
     return 1;
 }