aboutsummaryrefslogtreecommitdiff
path: root/pgm-interlace.c
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-04-26 14:54:50 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-04-26 14:54:50 +1200
commitaf2347a854c890a632c9a9fe56aa37c52a7c21e3 (patch)
tree473401303e5abdcd254a7239bd91c1f403fa2f96 /pgm-interlace.c
parentf342f3019d38f0faf737bf89631651837a66cd06 (diff)
downloadpgm-interlace-af2347a854c890a632c9a9fe56aa37c52a7c21e3.tar.xz
Fallthrough cases suck, remove todo list
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 == '#');