fixed some warnings

svn path=/trunk/; revision=5140
This commit is contained in:
Royce Mitchell III
2003-07-16 17:53:34 +00:00
parent 0b1a369faf
commit 0397f6f960
4 changed files with 11 additions and 5 deletions
+6
View File
@@ -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
+2 -2
View File
@@ -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;
}
+2 -2
View File
@@ -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);
}
/*
+1 -1
View File
@@ -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);