]> diplodocus.org Git - nmh/blobdiff - uip/dp.c
Restrict use of alloc_size function attribute to gcc >= 4.3.0.
[nmh] / uip / dp.c
index 56a0ae1cebfeec6800ae619aa5add4941b39c6f0..617da203f3e8819c91ac118736fc0d56643905c8 100644 (file)
--- a/uip/dp.c
+++ b/uip/dp.c
@@ -9,6 +9,7 @@
 #include <h/utils.h>
 #include <h/fmt_scan.h>
 #include <h/tws.h>
+#include "../sbr/terminal.h"
 
 #define        NDATES 100
 
@@ -123,7 +124,7 @@ main (int argc, char **argv)
 
     context_save ();   /* save the context file */
     fmt_free (fmt, 1);
-    done (status);
+    done(min(status, MAX_EXIT));
     return 1;
 }