X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Finc.c;h=8a05c6a0527dcd3823701b61f954fcb24902e95e;hp=213cc5dd61de2b55fab71863c1b639c0bcc2debe;hb=1201af682c2a7e34d4d598e62718306b885a187e;hpb=5a12e4b0477d3ad699f5713682d26079f2792d17 diff --git a/uip/inc.c b/uip/inc.c index 213cc5d..8a05c6a 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -119,7 +119,7 @@ static FILE *in; /* ** prototypes */ -static void inc_done(); +void inc_done(); int @@ -143,7 +143,9 @@ main(int argc, char **argv) /* copy of mail directory because the static gets overwritten */ char *maildir_copy = NULL; - atexit(inc_done); + if (atexit(inc_done) != 0) { + adios(NULL, "atexit failed"); + } /* ** absolutely the first thing we do is save our privileges, @@ -484,7 +486,7 @@ main(int argc, char **argv) return 0; } -static void +void inc_done() { if (locked) {