summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-20 10:27:17 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-21 23:41:08 +1100
commit87f28cc2671cf0211b0f1b286b719c5baf9e8111 (patch)
treef62efd60a9fdd5eaa86b3cf130e75c05a3dc2db3
parentec74ffa8f08d85c55ec7fc592101a21340b9a97d (diff)
downloadsamba-87f28cc2671cf0211b0f1b286b719c5baf9e8111.tar.gz
samba-87f28cc2671cf0211b0f1b286b719c5baf9e8111.tar.bz2
samba-87f28cc2671cf0211b0f1b286b719c5baf9e8111.zip
s4-torture: another unsigned comparison bug
-rw-r--r--source4/torture/raw/qfileinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c
index 85f9f1b093..032df87a4d 100644
--- a/source4/torture/raw/qfileinfo.c
+++ b/source4/torture/raw/qfileinfo.c
@@ -140,7 +140,7 @@ static int dos_nt_time_cmp(time_t t, NTTIME nt)
{
time_t t2 = nt_time_to_unix(nt);
if (abs(t2 - t) <= 2) return 0;
- return t2 - t;
+ return t2 > t ? 1 : -1;
}