mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
fixed some warnings
svn path=/trunk/; revision=5140
This commit is contained in:
parent
0b1a369faf
commit
0397f6f960
4 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2003-07-16 Royce Mitchell III <royce3@ev1.net>
|
||||||
|
|
||||||
|
* 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 <royce3@ev1.net>
|
2003-07-16 Royce Mitchell III <royce3@ev1.net>
|
||||||
|
|
||||||
* integrated Art Yerkes' _ftime implementation at
|
* 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
|
* ReactOS msvcrt library
|
||||||
*
|
*
|
||||||
|
@ -76,7 +76,7 @@ fputws(const wchar_t* s, FILE* f)
|
||||||
if (unbuffered)
|
if (unbuffered)
|
||||||
{
|
{
|
||||||
f->_flag &= ~_IONBF;
|
f->_flag &= ~_IONBF;
|
||||||
f->_ptr = f->_base = localbuf;
|
f->_ptr = f->_base = (unsigned char*)localbuf;
|
||||||
f->_bufsiz = BUFSIZ;
|
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)
|
int* __doserrno(void)
|
||||||
{
|
{
|
||||||
return(&GetThreadData()->tdoserrno);
|
return (int*)(&GetThreadData()->tdoserrno);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -21,7 +21,7 @@ int _wputenv(const wchar_t* val)
|
||||||
epos = wcsrchr(val, L'=');
|
epos = wcsrchr(val, L'=');
|
||||||
if (epos == NULL)
|
if (epos == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
buffer = (char*)malloc((epos - val + 1) * sizeof(wchar_t));
|
buffer = (wchar_t*)malloc((epos - val + 1) * sizeof(wchar_t));
|
||||||
if (buffer == NULL)
|
if (buffer == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
wcsncpy(buffer, val, epos - val);
|
wcsncpy(buffer, val, epos - val);
|
||||||
|
|
Loading…
Reference in a new issue