From 07092dd1f1a92320fef5d5c3a929ba728af8f8af Mon Sep 17 00:00:00 2001 From: thunder2 Date: Thu, 30 Sep 2010 20:16:25 +0000 Subject: [PATCH] Fixed compile on Windows. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3573 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- src/util/bdnet.cc | 4 ++-- src/util/bdnet.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/bdnet.cc b/src/util/bdnet.cc index 1733ca5..18413da 100644 --- a/src/util/bdnet.cc +++ b/src/util/bdnet.cc @@ -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); } -void usleep(int usec) +int usleep(unsigned int usec) { Sleep(usec / 1000); } diff --git a/src/util/bdnet.h b/src/util/bdnet.h index 2d4ac37..6849003 100644 --- a/src/util/bdnet.h +++ b/src/util/bdnet.h @@ -157,8 +157,8 @@ int bdnet_w2u_errno(int error); * ms uses millisecs. * void Sleep(int ms); */ -void sleep(int sec); -void usleep(int usec); +int sleep(unsigned int sec); +int usleep(unsigned int usec); #endif // END of WINDOWS defines. /********************************** WINDOWS/UNIX SPECIFIC PART ******************/