enum state {
LENERR2 = -2,
FMTERR2 = -3,
- ERR2 = -1,
+ IOERR2 = -1,
FLD2 = 0,
BODY2,
FILEEOF2,
/*
** For the states FLD2, BODY2 and FMTERR2 memory is allocated for f->value.
-** For the states LENERR2, ERR2 and FILEEOF2 no memory is allocated.
+** For the states LENERR2, IOERR2 and FILEEOF2 no memory is allocated.
*/
enum state
m_getfld2(enum state s, struct field *f, FILE *msg)
if (feof(msg)) {
return FILEEOF2;
} else {
- return ERR2;
+ return IOERR2;
}
}
nchars = getline(&tmpline, &len, msg);
if (nchars <= 0) {
free(tmpline);
- return ERR2;
+ return IOERR2;
}
if (nchars >= NAMESZ) {
if (falted == FAIL) {
free(tmpline);
- return ERR2;
+ return IOERR2;
}
free(tmpline);
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
advise(NULL, "Please re-edit draft and fix that header.");
leave_bad: ;
fclose(ifp);
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
advise(NULL, "format error in message %s", msgnam);
return NOTOK;
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
adios(EX_CONFIG, NULL, "message format error in component #%d",
compnum);
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
advise(NULL, "format error in message %s", mname);
exitstat++;
return;
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
adios(EX_DATAERR, NULL, "message format error in component #%d",
compnum);
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
advise(NULL, "format error in message %d", msgnum);
/* FALL */
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
advise(NULL, "format error in message");
break;
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
admonish(NULL, "format error in message %d (header #%d)", msg, compnum);
if (datecomp) {
free(datecomp);
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
adios(EX_DATAERR, NULL, "message format error in component #%d",
compnum);
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
adios(EX_DATAERR, NULL, "message format error in component #%d",
compnum);