X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpick.c;h=ad356e3915ae7f2e56f55090d8d29b29b40057d6;hp=dff628aec85ffde37f58a83953d278a567fbcd52;hb=38615191e71744b066425e0c44412b62dbe49cc2;hpb=0569d6d1631dc90d4f2f2df6bdd0599c7ecc7814 diff --git a/uip/pick.c b/uip/pick.c index dff628a..ad356e3 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -68,6 +68,7 @@ static struct swit switches[] = { static int listsw = -1; +static void putzero_done (int); int main (int argc, char **argv) @@ -81,6 +82,8 @@ main (int argc, char **argv) struct msgs *mp; register FILE *fp; + done=putzero_done; + #ifdef LOCALE setlocale(LC_ALL, ""); #endif @@ -283,15 +286,15 @@ main (int argc, char **argv) seq_save (mp); /* synchronize message sequences */ context_save (); /* save the context file */ folder_free (mp); /* free folder/message structure */ - return done (0); + done (0); + return 1; } -int -done (int status) +static void +putzero_done (int status) { if (listsw && status && !isatty (fileno (stdout))) printf ("0\n"); exit (status); - return 1; /* dead code to satisfy the compiler */ }