aboutsummaryrefslogtreecommitdiff
path: root/pgm-interlace.c
diff options
context:
space:
mode:
Diffstat (limited to 'pgm-interlace.c')
-rw-r--r--pgm-interlace.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/pgm-interlace.c b/pgm-interlace.c
index 5f74daf..c072563 100644
--- a/pgm-interlace.c
+++ b/pgm-interlace.c
@@ -25,12 +25,6 @@
* SUCH DAMAGE.
*/
-/*
- * general FIXME:
- * add func names to error messages
- * consolidate magic number string to #define or something. hardcoded is evil
- */
-
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@ -87,10 +81,10 @@ void read_whitespace(FILE *fd)
while (c != '\n' && c != '\r' && c != EOF)
c = fgetc(fd);
break;
-
+ case EOF:
+ break;
default:
ungetc(c, fd);
- case EOF:
break;
}
} while (isspace(c) || c == '#');