diff options
-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); } } |