Fixed compile on Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3573 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-09-30 20:16:25 +00:00
parent a43660bf9d
commit 750c1a9403
2 changed files with 4 additions and 4 deletions

View File

@ -273,12 +273,12 @@ int bdnet_inet_aton(const char *name, struct in_addr *addr)
void sleep(int sec) int sleep(unsigned int sec)
{ {
Sleep(sec * 1000); Sleep(sec * 1000);
} }
void usleep(int usec) int usleep(unsigned int usec)
{ {
Sleep(usec / 1000); Sleep(usec / 1000);
} }

View File

@ -157,8 +157,8 @@ int bdnet_w2u_errno(int error);
* ms uses millisecs. * ms uses millisecs.
* void Sleep(int ms); * void Sleep(int ms);
*/ */
void sleep(int sec); int sleep(unsigned int sec);
void usleep(int usec); int usleep(unsigned int usec);
#endif // END of WINDOWS defines. #endif // END of WINDOWS defines.
/********************************** WINDOWS/UNIX SPECIFIC PART ******************/ /********************************** WINDOWS/UNIX SPECIFIC PART ******************/