X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpick.c;h=afbcf88cabc79009b8b0be5ae598b7851942e6a9;hp=dff628aec85ffde37f58a83953d278a567fbcd52;hb=56a805299de35d8924969138aef4d0f1580daa6d;hpb=5c5dd3edc1081fa4bedec764e5e8cc44bc4fa5fd diff --git a/uip/pick.c b/uip/pick.c index dff628a..afbcf88 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -68,6 +68,7 @@ static struct swit switches[] = { static int listsw = -1; +static int 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 @@ -287,8 +290,8 @@ main (int argc, char **argv) } -int -done (int status) +static int +putzero_done (int status) { if (listsw && status && !isatty (fileno (stdout))) printf ("0\n");