diff --git a/reactos/ChangeLog b/reactos/ChangeLog index e0393f9bae3..115dd9efa40 100644 --- a/reactos/ChangeLog +++ b/reactos/ChangeLog @@ -1,3 +1,9 @@ +2003-07-16 Royce Mitchell III + + * fixed warnings at lib/msvcrt/stdio/fputs.c:79 + and lib/msvcrt/stdlib/errno.c:14 + and lib/msvcrt/stdlib/wputenv.c:24 + 2003-07-16 Royce Mitchell III * integrated Art Yerkes' _ftime implementation at diff --git a/reactos/lib/msvcrt/stdio/fputs.c b/reactos/lib/msvcrt/stdio/fputs.c index 514dce84b75..636a553ef89 100644 --- a/reactos/lib/msvcrt/stdio/fputs.c +++ b/reactos/lib/msvcrt/stdio/fputs.c @@ -1,4 +1,4 @@ -/* $Id: fputs.c,v 1.6 2003/07/11 21:58:09 royce Exp $ +/* $Id: fputs.c,v 1.7 2003/07/16 17:53:34 royce Exp $ * * ReactOS msvcrt library * @@ -76,7 +76,7 @@ fputws(const wchar_t* s, FILE* f) if (unbuffered) { f->_flag &= ~_IONBF; - f->_ptr = f->_base = localbuf; + f->_ptr = f->_base = (unsigned char*)localbuf; f->_bufsiz = BUFSIZ; } diff --git a/reactos/lib/msvcrt/stdlib/errno.c b/reactos/lib/msvcrt/stdlib/errno.c index 59767086a19..5016f7e1fb3 100644 --- a/reactos/lib/msvcrt/stdlib/errno.c +++ b/reactos/lib/msvcrt/stdlib/errno.c @@ -1,4 +1,4 @@ -/* $Id: errno.c,v 1.9 2003/07/11 21:58:09 royce Exp $ +/* $Id: errno.c,v 1.10 2003/07/16 17:53:34 royce Exp $ * */ @@ -11,7 +11,7 @@ */ int* __doserrno(void) { - return(&GetThreadData()->tdoserrno); + return (int*)(&GetThreadData()->tdoserrno); } /* diff --git a/reactos/lib/msvcrt/stdlib/wputenv.c b/reactos/lib/msvcrt/stdlib/wputenv.c index 2fe39f3e64c..c23b3156aad 100644 --- a/reactos/lib/msvcrt/stdlib/wputenv.c +++ b/reactos/lib/msvcrt/stdlib/wputenv.c @@ -21,7 +21,7 @@ int _wputenv(const wchar_t* val) epos = wcsrchr(val, L'='); if (epos == NULL) return -1; - buffer = (char*)malloc((epos - val + 1) * sizeof(wchar_t)); + buffer = (wchar_t*)malloc((epos - val + 1) * sizeof(wchar_t)); if (buffer == NULL) return -1; wcsncpy(buffer, val, epos - val);