X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpick.c;h=afbcf88cabc79009b8b0be5ae598b7851942e6a9;hb=045101c0a79f43fe566422622f154d5cc0141d8a;hp=8fd294ee140fc85caf6e17e1641cc8fe87bc4065;hpb=174d375bb4b9bcaa0c3f28c422216f68703494a8;p=mmh diff --git a/uip/pick.c b/uip/pick.c index 8fd294e..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 @@ -177,7 +180,7 @@ main (int argc, char **argv) if (folder) adios (NULL, "only one folder at a time!"); else - folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF); + folder = pluspath (cp); } else app_msgarg(&msgs, cp); } @@ -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");