mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
fixed some warnings
svn path=/trunk/; revision=5140
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2003-07-16 Royce Mitchell III <[email protected]>
|
||||
|
||||
* 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 <[email protected]>
|
||||
|
||||
* integrated Art Yerkes' _ftime implementation at
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user