From 750c1a9403384b9130572e4d8b41ead5189f4a7e 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 --- libbitdht/src/util/bdnet.cc | 4 ++-- libbitdht/src/util/bdnet.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libbitdht/src/util/bdnet.cc b/libbitdht/src/util/bdnet.cc index 1733ca591..18413da20 100644 --- a/libbitdht/src/util/bdnet.cc +++ b/libbitdht/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/libbitdht/src/util/bdnet.h b/libbitdht/src/util/bdnet.h index 2d4ac370d..684900310 100644 --- a/libbitdht/src/util/bdnet.h +++ b/libbitdht/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 ******************/