X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frcvdist.c;h=b0a360977bfae8aa13b2b257be0be6d792efee78;hp=e8815653e7713170d3d4a1c15dd3c22dfad8076d;hb=38615191e71744b066425e0c44412b62dbe49cc2;hpb=d2f12554a254e814dcdafb3828fc0d9936154eef diff --git a/uip/rcvdist.c b/uip/rcvdist.c index e881565..b0a3609 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); 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 */ }