Remove unused code
[mmh] / uip / pick.c
index 5df2861..4cb33fb 100644 (file)
@@ -70,6 +70,8 @@ static struct swit switches[] = {
        { NULL, 0 }
 };
 
+char *version=VERSION;
+
 /*
 ** static prototypes
 */
@@ -1249,6 +1251,10 @@ plist
        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);
@@ -1259,10 +1265,13 @@ plist
                        }
                        continue;
 
-               case LENERR2:
                case FMTERR2:
-               case IOERR2:
                        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: