summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_workgroupdb.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-08-02 20:44:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:22 -0500
commit311cf22a2e028d560000da0645abd3625d1cbd3d (patch)
tree66e4daaaf0152b8ec0b06cb1cf060ab63873d1f6 /source3/nmbd/nmbd_workgroupdb.c
parent191b5977d0c7bf65d418e5e97de0e8b8d9d5237c (diff)
downloadsamba-311cf22a2e028d560000da0645abd3625d1cbd3d.tar.gz
samba-311cf22a2e028d560000da0645abd3625d1cbd3d.tar.bz2
samba-311cf22a2e028d560000da0645abd3625d1cbd3d.zip
r8946: Some casts to fix warnings when time_t is an unsigned type. Fixes
bugzilla #1888 and #1894. (This used to be commit dcc74371388d280d8ee5130a04e1594ae88d19b3)
Diffstat (limited to 'source3/nmbd/nmbd_workgroupdb.c')
-rw-r--r--source3/nmbd/nmbd_workgroupdb.c2
1 files changed, 1 insertions, 1 deletions
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);