From ff0b1c72233bf9fce90aaa337d95ab7651eca63b Mon Sep 17 00:00:00 2001 From: drbob Date: Wed, 29 Sep 2010 20:01:04 +0000 Subject: [PATCH] * Added usleep fn definition to windows * fixed compile warning. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3560 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- src/util/bdnet.cc | 2 +- src/util/bdnet.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/bdnet.cc b/src/util/bdnet.cc index 515ec7f..1733ca5 100644 --- a/src/util/bdnet.cc +++ b/src/util/bdnet.cc @@ -297,7 +297,7 @@ int bdnet_errno() { return errno; } /* check if we can modify the TTL on a UDP packet */ -int bdnet_checkTTL(int fd) { return 1;} +int bdnet_checkTTL(int /*fd*/) { return 1;} int bdnet_inet_aton(const char *name, struct in_addr *addr) diff --git a/src/util/bdnet.h b/src/util/bdnet.h index 5062812..2d4ac37 100644 --- a/src/util/bdnet.h +++ b/src/util/bdnet.h @@ -158,7 +158,7 @@ int bdnet_w2u_errno(int error); * void Sleep(int ms); */ void sleep(int sec); -//void usleep(int usec); +void usleep(int usec); #endif // END of WINDOWS defines. /********************************** WINDOWS/UNIX SPECIFIC PART ******************/