projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dead code: FLDEOF and BODYEOF are never set
[mmh]
/
uip
/
mhparse.c
diff --git
a/uip/mhparse.c
b/uip/mhparse.c
index
2afb03a
..
4885572
100644
(file)
--- a/
uip/mhparse.c
+++ b/
uip/mhparse.c
@@
-253,7
+253,6
@@
get_content(FILE *in, char *file, int toplevel)
switch (state = m_getfld(state, name, buf, sizeof(buf), in)) {
case FLD:
case FLDPLUS:
switch (state = m_getfld(state, name, buf, sizeof(buf), in)) {
case FLD:
case FLDPLUS:
- case FLDEOF:
compnum++;
/* get copies of the buffers */
compnum++;
/* get copies of the buffers */
@@
-270,15
+269,10
@@
get_content(FILE *in, char *file, int toplevel)
/* Now add the header data to the list */
add_header(ct, np, vp);
/* Now add the header data to the list */
add_header(ct, np, vp);
- /* continue, if this isn't the last header field */
- if (state != FLDEOF) {
- ct->c_begin = ftell(in) + 1;
- continue;
- }
- /* else fall... */
+ ct->c_begin = ftell(in) + 1;
+ continue;
case BODY:
case BODY:
- case BODYEOF:
ct->c_begin = ftell(in) - strlen(buf);
break;
ct->c_begin = ftell(in) - strlen(buf);
break;