diff --git a/CHANGES b/CHANGES index e18a757..48dce6e 100644 --- a/CHANGES +++ b/CHANGES @@ -12,6 +12,8 @@ Corrections: quotes Test: UNBALANCED_QUOTE + Removed unused usleep() call from sycls.c + Porting: In gcc version 10 the default changed from -fcommon to -fno-common. Consequently, linking filan and procan failed with error diff --git a/sycls.c b/sycls.c index 9d30a6e..0767f57 100644 --- a/sycls.c +++ b/sycls.c @@ -1329,14 +1329,6 @@ unsigned int Sleep(unsigned int seconds) { return retval; } -/* obsolete by POSIX.1-2001 */ -void Usleep(unsigned long usec) { - Debug1("usleep(%lu)", usec); - usleep(usec); - Debug("usleep() ->"); - return; -} - #if HAVE_NANOSLEEP unsigned int Nanosleep(const struct timespec *req, struct timespec *rem) { int retval, _errno; diff --git a/sycls.h b/sycls.h index 57eb994..2d5e706 100644 --- a/sycls.h +++ b/sycls.h @@ -134,7 +134,6 @@ int Shutdown(int fd, int how); #endif /* _WITH_SOCKET */ #if WITH_SYCLS unsigned int Sleep(unsigned int seconds); -void Usleep(unsigned long usec); unsigned int Nanosleep(const struct timespec *req, struct timespec *rem); int Pause(void); struct hostent *Gethostbyname(const char *name); @@ -242,7 +241,6 @@ void Add_history(const char *string); #define Setsockopt(s,d,n,v,l) setsockopt(s,d,n,v,l) #define Shutdown(f,h) shutdown(f,h) #define Sleep(s) sleep(s) -#define Usleep(u) usleep(u) #define Nanosleep(req,rem) nanosleep(req,rem) #define Pause() pause() #define Gethostbyname(n) gethostbyname(n)