From 90f1d5866d7d0c7c270fac0939b7de6bf4c35be9 Mon Sep 17 00:00:00 2001 From: Dan Harkless Date: Tue, 25 Jan 2000 05:58:26 +0000 Subject: [PATCH] Put in a prototype for stdio internal function _filbuf() to get rid of the "default prototype" warning (only do this when we didn't #define it to something specific due to another #define telling us to do so). --- sbr/m_getfld.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index cddf362..0db7bd9 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -184,6 +184,7 @@ static int (*eom_action)() = NULL; # define _ptr _p /* Gag */ # define _cnt _r /* Retch */ # define _filbuf __srget /* Puke */ +# define DEFINED__FILBUF_TO_SOMETHING_SPECIFIC #endif #ifdef SCO_5_STDIO @@ -191,6 +192,11 @@ static int (*eom_action)() = NULL; # define _cnt __cnt # define _base __base # define _filbuf(fp) ((fp)->__cnt = 0, __filbuf(fp)) +# define DEFINED__FILBUF_TO_SOMETHING_SPECIFIC +#endif + +#ifndef DEFINED__FILBUF_TO_SOMETHING_SPECIFIC +extern int _filbuf(FILE*); #endif @@ -572,7 +578,7 @@ m_unknown(FILE *iob) pat_map = (unsigned char **) calloc (256, sizeof(unsigned char *)); for (cp = (char *) fdelim + 1; cp < (char *) delimend; cp++ ) - pat_map[*cp] = (unsigned char *) cp; + pat_map[(int)*cp] = (unsigned char *) cp; if (msg_style == MS_MMDF) { /* flush extra msg hdrs */ -- 1.7.10.4