summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-17 13:47:05 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-17 13:49:11 +0200
commit10eefd85c988503309021316f744ebb25579b873 (patch)
treede9f991aefa28947f9475daae1fe5d76e7f4c662 /source3/libsmb
parent311744a1312d4be51c0d50a71884f604ea2e3b99 (diff)
downloadsamba-10eefd85c988503309021316f744ebb25579b873.tar.gz
samba-10eefd85c988503309021316f744ebb25579b873.tar.bz2
samba-10eefd85c988503309021316f744ebb25579b873.zip
s3: fix order of arguments in nsec_time_diff call
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 00a3b97a98..d1fb5ab817 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 (nsec_time_diff(&tp,&tp2)/1000000 > retry_time) {
+ if (nsec_time_diff(&tp2,&tp)/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 (nsec_time_diff(&tp,&tp2)/1000000 > retry_time) {
+ if (nsec_time_diff(&tp2,&tp)/1000000 > retry_time) {
if (!retries)
break;
if (!found && !send_packet(&p))