X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frcvdist.c;h=7ee47fd92e0ce748b48f75bba9ec99716b43287d;hb=cd665517f488ca62e71b7fd1db6df0813dee052a;hp=e8815653e7713170d3d4a1c15dd3c22dfad8076d;hpb=d2f12554a254e814dcdafb3828fc0d9936154eef;p=mmh diff --git a/uip/rcvdist.c b/uip/rcvdist.c index e881565..7ee47fd 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -34,7 +34,7 @@ static char tmpfil[BUFSIZ] = ""; * prototypes */ static void rcvdistout (FILE *, char *, char *); -int done (int); +static void unlink_done (int) NORETURN; int @@ -46,6 +46,8 @@ main (int argc, char **argv) char **argp, **arguments, *vec[MAXARGS]; register FILE *fp; + done=unlink_done; + #ifdef LOCALE setlocale(LC_ALL, ""); #endif @@ -268,8 +270,8 @@ finished: ; } -int -done (int status) +static void +unlink_done (int status) { if (backup[0]) unlink (backup); @@ -279,5 +281,4 @@ done (int status) unlink (tmpfil); exit (status ? RCV_MBX : RCV_MOK); - return 1; /* dead code to satisfy the compiler */ }