Fix warnings (some bugs, some spurious)

Many spurious VC warnings not quieted though.
This commit is contained in:
Nicolas Williams
2020-03-12 00:42:33 -05:00
parent f3e6c4ffd4
commit 64d5f86ec3
20 changed files with 38 additions and 36 deletions

View File

@@ -41,7 +41,7 @@ ROKEN_LIB_FUNCTION unsigned int ROKEN_LIB_CALL
sleep(unsigned int seconds)
{
if (SleepEx(1000 * (DWORD) seconds, FALSE) != 0)
return -1;
return 1; /* XXX Should get time before and after */
return 0;
}
@@ -50,6 +50,6 @@ ROKEN_LIB_FUNCTION unsigned int ROKEN_LIB_CALL
usleep(unsigned int useconds)
{
if (SleepEx((DWORD)(useconds / 1000), FALSE) != 0)
return -1;
return 1000; /* XXX Should get time before and after */
return 0;
}