}
}
- if (ismbox) {
- if (incing) {
- scnmsg = m_name(outnum);
- if (*scnmsg == '?') /* msg num out of range */
- return SCNNUM;
- } else {
- scnmsg = "/dev/null";
- }
+ if (incing) {
+ scnmsg = m_name(outnum);
+ if (*scnmsg == '?') /* msg num out of range */
+ return SCNNUM;
if ((scnout = fopen(scnmsg, "w")) == NULL)
adios(scnmsg, "unable to write");
/*
case BODY:
compnum = -1;
if (!incing) {
- state = FILEEOF; /* stop now if scan cmd */
+ state = FILEEOF; /* stop here if scan cmd */
goto finished;
}
if (putc('\n', scnout) == EOF)
}
*--nxtbuf = tmpbuf;
- if (ismbox && (ferror(scnout) || fclose(scnout) == EOF))
+ if (incing && (ferror(scnout) || fclose(scnout) == EOF))
adios(scnmsg, "write error on");
return (state != FILEEOF ? SCNERR : SCNMSG);