X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpick.c;h=07dca9a98b342930cd5f67e16ab308f78518616b;hp=6c59add7630f4d85d4483f03dfc26a201a9b2b9a;hb=2abb9a7cfb0930e27062088734d306e7d78e4cc2;hpb=5a12e4b0477d3ad699f5713682d26079f2792d17 diff --git a/uip/pick.c b/uip/pick.c index 6c59add..07dca9a 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -9,6 +9,8 @@ #include #include #include +#include +#include #ifdef HAVE_SYS_TIME_H # include @@ -76,7 +78,7 @@ static int pmatches(FILE *, int, long, long); static int listsw = -1; -static void putzero_done(); +void putzero_done(); int main(int argc, char **argv) @@ -91,7 +93,9 @@ main(int argc, char **argv) struct msgs *mp; register FILE *fp; - atexit(putzero_done); + if (atexit(putzero_done) != 0) { + adios(NULL, "atexit failed"); + } setlocale(LC_ALL, ""); invo_name = mhbasename(argv[0]); @@ -307,7 +311,7 @@ main(int argc, char **argv) } -static void +void putzero_done() { if (listsw && !isatty(fileno(stdout)))