mirror of
https://framagit.org/bortzmeyer/echoping
synced 2024-11-10 19:10:34 +00:00
#1473872 fixed
This commit is contained in:
parent
46fc19fdd2
commit
89af6a8780
@ -10,6 +10,7 @@
|
||||
typical example is that "old-school" Unix aggreation of arguments
|
||||
("echoping -v4 localhost") is no longer accepted (use "echoping -v
|
||||
-4 localhost").
|
||||
* Many bug fixes, see the list at Sourceforge
|
||||
|
||||
5.2.0 (2004-02-29)
|
||||
|
||||
|
@ -750,7 +750,14 @@ main(argc, argv)
|
||||
alarm(timeout);
|
||||
if (i > 1) {
|
||||
#ifdef HAVE_USLEEP
|
||||
usleep(wait * 1000000);
|
||||
/* SUSv3 states that the argument to usleep() shall
|
||||
be less * than 1000000, so split into two calls
|
||||
if necessary. Bug #1473872, fix by Jeff Rizzo
|
||||
- riz@sourceforge */
|
||||
if (wait >= 1) {
|
||||
sleep((unsigned int) wait);
|
||||
}
|
||||
usleep((wait - (unsigned int) wait) * 1000000);
|
||||
#else
|
||||
sleep(wait);
|
||||
#endif
|
||||
@ -1327,7 +1334,7 @@ main(argc, argv)
|
||||
gnutls_deinit(session);
|
||||
/*
|
||||
* gnutls_certificate_free_credentials(xcred);
|
||||
*
|
||||
*
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user