From efdb21fff439759a746f339e30aba255ed4a60d5 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 26 Feb 2002 15:22:38 +0000 Subject: Be consistant and use an unsigned char * throughout --- libc/stdio/stdio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libc/stdio') diff --git a/libc/stdio/stdio.c b/libc/stdio/stdio.c index 6389d9ffc..4a0dc8188 100644 --- a/libc/stdio/stdio.c +++ b/libc/stdio/stdio.c @@ -842,8 +842,9 @@ void setbuffer(FILE *fp, char *buf, size_t size) #endif #ifdef L_setvbuf -int setvbuf(FILE *fp, char *buf, int mode, size_t size) +int setvbuf(FILE *fp, char *ubuf, int mode, size_t size) { + unsigned char *buf = ubuf; int allocated_buf_flag; if ((mode < 0) || (mode > 2)) { /* Illegal mode. */ @@ -877,7 +878,7 @@ int setvbuf(FILE *fp, char *buf, int mode, size_t size) } } - if (buf && (buf != (char *) fp->bufstart)) { /* Want different buffer. */ + if (buf && (buf != fp->bufstart)) { /* Want different buffer. */ _free_stdio_buffer_of_file(fp); /* Free the old buffer. */ fp->mode |= allocated_buf_flag; /* Allocated? or FILE's builtin. */ fp->bufstart = buf; -- cgit v1.2.3