diff options
author | Gunter Knauf <gk@gknw.de> | 2007-08-09 21:05:05 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2007-08-09 21:05:05 +0000 |
commit | 3f62bfb61d776d8f9095c13f4cd004dd32cb3cca (patch) | |
tree | 6052837b26c295eda59fec5f8803f813686862a1 /lib | |
parent | c7a66d5af44606b1028fe4711df942057dcc1203 (diff) |
fixed a warning which MingW gcc 4.2.1.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index 10a8ad940..f0a383210 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -296,10 +296,10 @@ int dprintf_Pass1Report(va_stack_t *vto, int max) * ******************************************************************/ -static long dprintf_Pass1(char *format, va_stack_t *vto, char **endpos, +static long dprintf_Pass1(const char *format, va_stack_t *vto, char **endpos, va_list arglist) { - char *fmt = format; + char *fmt = (char *)format; int param_num = 0; long this_param; long width; @@ -614,7 +614,7 @@ static int dprintf_formatf( va_stack_t *p; /* Do the actual %-code parsing */ - dprintf_Pass1((char *)format, vto, endpos, ap_save); + dprintf_Pass1(format, vto, endpos, ap_save); end = &endpos[0]; /* the initial end-position from the list dprintf_Pass1() created for us */ |