diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-27 11:37:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:14:49 -0500 |
commit | 1888bb4fd98138b2ac2ba01b9e2eae1736c76a33 (patch) | |
tree | 53178af819fbfcd28a6cf05321eb0715080bc532 /source3/utils | |
parent | 296b450f16dd45e01d4c495ca085c16e1894adc6 (diff) | |
download | samba-1888bb4fd98138b2ac2ba01b9e2eae1736c76a33.tar.gz samba-1888bb4fd98138b2ac2ba01b9e2eae1736c76a33.tar.bz2 samba-1888bb4fd98138b2ac2ba01b9e2eae1736c76a33.zip |
r18949: use sys_usleep()
metze
(This used to be commit f9944941415b88559b67f6c7e780e364d5030240)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_service.c | 2 | ||||
-rw-r--r-- | source3/utils/status_profile.c | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/source3/utils/net_rpc_service.c b/source3/utils/net_rpc_service.c index 27127a1c3f..58a5b27f40 100644 --- a/source3/utils/net_rpc_service.c +++ b/source3/utils/net_rpc_service.c @@ -80,7 +80,7 @@ static WERROR watch_service_state(struct rpc_pipe_client *pipe_hnd, d_printf("."); i++; - usleep( 100 ); + sys_usleep( 100 ); } d_printf("\n"); diff --git a/source3/utils/status_profile.c b/source3/utils/status_profile.c index 9de89d563f..811279b3a4 100644 --- a/source3/utils/status_profile.c +++ b/source3/utils/status_profile.c @@ -409,11 +409,6 @@ BOOL status_profile_dump(BOOL verbose) #ifdef WITH_PROFILE -static void sample_delay(int delay_msec) -{ - poll(NULL, 0, delay_msec); -} - /* Convert microseconds to milliseconds. */ #define usec_to_msec(s) ((s) / 1000) /* Convert microseconds to seconds. */ @@ -526,7 +521,7 @@ BOOL status_profile_rates(BOOL verbose) (unsigned long )usec_to_msec(remain_usec)); } - sample_delay(usec_to_msec(remain_usec)); + sys_usleep(remain_usec); } } |