X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frcvstore.c;fp=uip%2Frcvstore.c;h=0b5ad85ce5aa715a181978a24934eb6842bc888d;hp=fbddda7faba9d0fc51df3d34e004c157df56513a;hb=1201af682c2a7e34d4d598e62718306b885a187e;hpb=5a12e4b0477d3ad699f5713682d26079f2792d17 diff --git a/uip/rcvstore.c b/uip/rcvstore.c index fbddda7..0b5ad85 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -44,7 +44,7 @@ static struct swit switches[] = { */ static char *tmpfilenam = NULL; -static void unlink_done(); +void unlink_done(); int main(int argc, char **argv) @@ -58,7 +58,9 @@ main(int argc, char **argv) struct msgs *mp; struct stat st; - atexit(unlink_done); + if (atexit(unlink_done) != 0) { + adios(NULL, "atexit failed"); + } setlocale(LC_ALL, ""); invo_name = mhbasename(argv[0]); @@ -226,7 +228,7 @@ main(int argc, char **argv) /* ** Clean up and exit */ -static void +void unlink_done() { if (tmpfilenam && *tmpfilenam) {