X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpick.c;h=ae1fa03fa83e5ce259b75aea425cc04489a35115;hb=8ab7ca4f2b4caa1f1ed2859d7d911513a7b2b2a2;hp=7c42b42af9d744e7ec92fad3a68b5bf6844b19f9;hpb=fede6e42d81ce34fd5c1bbe7fb2757b281c2573a;p=mmh diff --git a/uip/pick.c b/uip/pick.c index 7c42b42..ae1fa03 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -163,7 +163,6 @@ main(int argc, char **argv) adios(NULL, "too many sequences (more than %d) specified", NUMATTRS); if (!seq_nameok(cp)) - /* sysexits.h EX_USAGE */ exit(1); seqs[seqp++] = cp; @@ -239,7 +238,6 @@ main(int argc, char **argv) folder); if (!pcompile(vec, NULL)) - /* sysexits.h EX_USAGE */ exit(1); lo = mp->lowsel; @@ -291,7 +289,6 @@ main(int argc, char **argv) */ for (seqp = 0; seqs[seqp]; seqp++) if (!seq_addsel(mp, seqs[seqp], publicsw, zerosw)) - /* sysexits.h EX_IOERR */ exit(1); /* @@ -305,6 +302,7 @@ main(int argc, char **argv) seq_save(mp); /* synchronize message sequences */ context_save(); /* save the context file */ folder_free(mp); /* free folder/message structure */ + listsw = 0; /* HACK */ return 0; } @@ -312,9 +310,8 @@ main(int argc, char **argv) static void putzero_done() { - if (listsw && !isatty(fileno(stdout))) { + if (listsw && !isatty(fileno(stdout))) printf("0\n"); - } }