Removed unused usleep() call from sycls.c

This commit is contained in:
Gerhard Rieger 2020-12-12 12:58:30 +01:00
parent ecac86a280
commit d4cce300a4
3 changed files with 2 additions and 10 deletions

View file

@ -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

View file

@ -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;

View file

@ -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)