summaryrefslogtreecommitdiffstats
path: root/source/namedbsubnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/namedbsubnet.c')
-rw-r--r--source/namedbsubnet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/namedbsubnet.c b/source/namedbsubnet.c
index 0bad79246ad..16eeb6322eb 100644
--- a/source/namedbsubnet.c
+++ b/source/namedbsubnet.c
@@ -252,14 +252,13 @@ struct subnet_record *add_subnet_entry(struct in_addr bcast_ip,
/*******************************************************************
write out browse.dat
******************************************************************/
-void write_browse_list(void)
+void write_browse_list(time_t t)
{
struct subnet_record *d;
pstring fname,fnamenew;
FILE *f;
static time_t lasttime = 0;
- time_t t = time(NULL);
if (!lasttime) lasttime = t;
if (!updatedlists || t - lasttime < 5) return;