X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4f7866121132ca824df3fd6f847fc18f49cfd70b..26c2b1ef1709cd7b34fe3e78995768a369e0f116:/sbr/m_getfld.c diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index 7e92f9e3..77dbeda1 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -203,11 +203,11 @@ * static prototypes */ struct m_getfld_state; -static int m_Eom (m_getfld_state_t, int); +static int m_Eom (m_getfld_state_t); static char *matchc(int, char *, int, char *); #define eom(c,s) (s->msg_style != MS_DEFAULT && \ - ((c) == *s->msg_delim && m_Eom(s,c))) + ((c) == *s->msg_delim && m_Eom(s))) /* This replaces the old approach, with its direct access to stdio * internals. It uses one fread() to load a buffer that we manage. @@ -847,7 +847,7 @@ m_unknown(m_getfld_state_t *gstate, FILE *iob) */ static int -m_Eom (m_getfld_state_t s, int c) +m_Eom (m_getfld_state_t s) { register int i; char text[MAX_DELIMITER_SIZE]; @@ -881,6 +881,7 @@ m_Eom (m_getfld_state_t s, int c) } if (s->msg_style == MS_MBOX) { + int c; while ((c = Getc (s)) != '\n') if (c < 0) break;