mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
Removed unused usleep() call from sycls.c
This commit is contained in:
parent
ecac86a280
commit
d4cce300a4
3 changed files with 2 additions and 10 deletions
2
CHANGES
2
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
|
||||
|
|
8
sycls.c
8
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;
|
||||
|
|
2
sycls.h
2
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)
|
||||
|
|
Loading…
Reference in a new issue