projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify whatnow.c/main() function
[mmh]
/
uip
/
pick.c
diff --git
a/uip/pick.c
b/uip/pick.c
index
5df2861
..
7d9c086
100644
(file)
--- a/
uip/pick.c
+++ b/
uip/pick.c
@@
-1249,6
+1249,10
@@
plist
fseek(fp, start, SEEK_SET);
for (state = FLD2, bp = NULL;;) {
switch (state = m_getfld2(state, &f, fp)) {
fseek(fp, start, SEEK_SET);
for (state = FLD2, bp = NULL;;) {
switch (state = m_getfld2(state, &f, fp)) {
+ case LENERR2:
+ state = FLD2;
+ /* FALL */
+
case FLD2:
if (bp) {
mh_free0(&bp);
case FLD2:
if (bp) {
mh_free0(&bp);
@@
-1259,10
+1263,13
@@
plist
}
continue;
}
continue;
- case LENERR2:
case FMTERR2:
case FMTERR2:
- case IOERR2:
advise(NULL, "format error in message %d", msgnum);
advise(NULL, "format error in message %d", msgnum);
+ state = FLD2;
+ continue;
+
+ case IOERR2:
+ adios(EX_IOERR, "m_getfld2", "io error on message %d", msgnum);
/* FALL */
case BODY2:
/* FALL */
case BODY2: