diff options
author | Björn Jacke <bj@sernet.de> | 2010-09-16 19:02:27 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-09-16 21:38:20 +0200 |
commit | aada7196940377ca6942eed470fc2e0e42f71b32 (patch) | |
tree | 1d9cf93c95d88340cb25a9b22adac8f35386b887 /source3/libsmb | |
parent | ec643df212e521fc19119820b1e4fac15986bf28 (diff) | |
download | samba-aada7196940377ca6942eed470fc2e0e42f71b32.tar.gz samba-aada7196940377ca6942eed470fc2e0e42f71b32.tar.bz2 samba-aada7196940377ca6942eed470fc2e0e42f71b32.zip |
s3: use nsec_time_diff instead of TspecDiff
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/namequery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index c949d3bcb4..00a3b97a98 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -307,7 +307,7 @@ NODE_STATUS_STRUCT *node_status_query(int fd, while (1) { struct timespec tp2; clock_gettime_mono(&tp2); - if (TspecDiff(&tp,&tp2) > retry_time) { + if (nsec_time_diff(&tp,&tp2)/1000000 > retry_time) { if (!retries) break; if (!found && !send_packet(&p)) @@ -716,7 +716,7 @@ struct sockaddr_storage *name_query(int fd, struct timespec tp2; clock_gettime_mono(&tp2); - if (TspecDiff(&tp,&tp2) > retry_time) { + if (nsec_time_diff(&tp,&tp2)/1000000 > retry_time) { if (!retries) break; if (!found && !send_packet(&p)) |