diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-04-26 14:54:50 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-04-26 14:54:50 +1200 |
commit | af2347a854c890a632c9a9fe56aa37c52a7c21e3 (patch) | |
tree | 473401303e5abdcd254a7239bd91c1f403fa2f96 | |
parent | f342f3019d38f0faf737bf89631651837a66cd06 (diff) | |
download | pgm-interlace-af2347a854c890a632c9a9fe56aa37c52a7c21e3.tar.xz |
Fallthrough cases suck, remove todo list
-rw-r--r-- | pgm-interlace.c | 10 |
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 == '#'); |