From 311cf22a2e028d560000da0645abd3625d1cbd3d Mon Sep 17 00:00:00 2001
From: Tim Potter <tpot@samba.org>
Date: Tue, 2 Aug 2005 20:44:30 +0000
Subject: r8946: Some casts to fix warnings when time_t is an unsigned type. 
 Fixes bugzilla #1888 and #1894. (This used to be commit
 dcc74371388d280d8ee5130a04e1594ae88d19b3)

---
 source3/nmbd/nmbd_workgroupdb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'source3/nmbd')

diff --git a/source3/nmbd/nmbd_workgroupdb.c b/source3/nmbd/nmbd_workgroupdb.c
index 917116dd07..335d522031 100644
--- a/source3/nmbd/nmbd_workgroupdb.c
+++ b/source3/nmbd/nmbd_workgroupdb.c
@@ -322,7 +322,7 @@ void expire_workgroups_and_servers(time_t t)
 			expire_servers(work, t);
 
 			if ((work->serverlist == NULL) && (work->death_time != PERMANENT_TTL) && 
-					((t == -1) || (work->death_time < t))) {
+					((t == (time_t)-1) || (work->death_time < t))) {
 				DEBUG(3,("expire_workgroups_and_servers: Removing timed out workgroup %s\n",
 						work->work_group));
 				remove_workgroup_from_subnet(subrec, work);
-- 
cgit