Undo last last commit in uip/pick.c. pick shoud only print "0" if
it exit with a non-zero exit.
-static void putzero_done();
+static void putzero_done(int) NORETURN;
int
main(int argc, char **argv)
int
main(int argc, char **argv)
struct msgs *mp;
register FILE *fp;
struct msgs *mp;
register FILE *fp;
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
case AMBIGSW:
ambigsw(cp, switches);
listsw = 0; /* HACK */
case AMBIGSW:
ambigsw(cp, switches);
listsw = 0; /* HACK */
case UNKWNSW:
adios(NULL, "-%s unknown", cp);
case UNKWNSW:
adios(NULL, "-%s unknown", cp);
snprintf(buf, sizeof(buf), "%s [+folder] [msgs] [switches]", invo_name);
print_help(buf, switches, 1);
listsw = 0; /* HACK */
snprintf(buf, sizeof(buf), "%s [+folder] [msgs] [switches]", invo_name);
print_help(buf, switches, 1);
listsw = 0; /* HACK */
case VERSIONSW:
print_version(invo_name);
listsw = 0; /* HACK */
case VERSIONSW:
print_version(invo_name);
listsw = 0; /* HACK */
adios(NULL, "too many sequences (more than %d) specified", NUMATTRS);
if (!seq_nameok(cp))
adios(NULL, "too many sequences (more than %d) specified", NUMATTRS);
if (!seq_nameok(cp))
- /* sysexits.h EX_USAGE */
- exit(1);
seqs[seqp++] = cp;
continue;
seqs[seqp++] = cp;
continue;
/* parse all the message ranges/sequences and set SELECTED */
for (msgnum = 0; msgnum < msgs.size; msgnum++)
if (!m_convert(mp, msgs.msgs[msgnum]))
/* parse all the message ranges/sequences and set SELECTED */
for (msgnum = 0; msgnum < msgs.size; msgnum++)
if (!m_convert(mp, msgs.msgs[msgnum]))
seq_setprev(mp); /* set the previous-sequence */
/*
seq_setprev(mp); /* set the previous-sequence */
/*
folder);
if (!pcompile(vec, NULL))
folder);
if (!pcompile(vec, NULL))
- /* sysexits.h EX_USAGE */
- exit(1);
lo = mp->lowsel;
hi = mp->hghsel;
lo = mp->lowsel;
hi = mp->hghsel;
*/
for (seqp = 0; seqs[seqp]; seqp++)
if (!seq_addsel(mp, seqs[seqp], publicsw, zerosw))
*/
for (seqp = 0; seqs[seqp]; seqp++)
if (!seq_addsel(mp, seqs[seqp], publicsw, zerosw))
- /* sysexits.h EX_IOERR */
- exit(1);
/*
** Print total matched if not printing each matched message number.
/*
** Print total matched if not printing each matched message number.
seq_save(mp); /* synchronize message sequences */
context_save(); /* save the context file */
folder_free(mp); /* free folder/message structure */
seq_save(mp); /* synchronize message sequences */
context_save(); /* save the context file */
folder_free(mp); /* free folder/message structure */
+putzero_done(int status)
- if (listsw && !isatty(fileno(stdout))) {
+ if (listsw && status && !isatty(fileno(stdout)))