summaryrefslogtreecommitdiff
path: root/source4/nmbd
diff options
context:
space:
mode:
Diffstat (limited to 'source4/nmbd')
-rw-r--r--source4/nmbd/nmbd_namelistdb.c4
-rw-r--r--source4/nmbd/nmbd_winsserver.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/nmbd/nmbd_namelistdb.c b/source4/nmbd/nmbd_namelistdb.c
index 932d926a91..6653cdd24b 100644
--- a/source4/nmbd/nmbd_namelistdb.c
+++ b/source4/nmbd/nmbd_namelistdb.c
@@ -566,7 +566,7 @@ static void dump_subnet_namelist( struct subnet_record *subrec, XFILE *fp)
if(namerec->data.death_time != PERMANENT_TTL)
{
- tm = LocalTime(&namerec->data.death_time);
+ tm = localtime(&namerec->data.death_time);
x_fprintf(fp, "death_time = %s\t", asctime(tm));
}
else
@@ -574,7 +574,7 @@ static void dump_subnet_namelist( struct subnet_record *subrec, XFILE *fp)
if(namerec->data.refresh_time != PERMANENT_TTL)
{
- tm = LocalTime(&namerec->data.refresh_time);
+ tm = localtime(&namerec->data.refresh_time);
x_fprintf(fp, "refresh_time = %s\n", asctime(tm));
}
else
diff --git a/source4/nmbd/nmbd_winsserver.c b/source4/nmbd/nmbd_winsserver.c
index 4ef476f814..6d1f654e84 100644
--- a/source4/nmbd/nmbd_winsserver.c
+++ b/source4/nmbd/nmbd_winsserver.c
@@ -1814,7 +1814,7 @@ void wins_write_database(BOOL background)
if( namerec->data.death_time != PERMANENT_TTL ) {
char *ts, *nl;
- tm = LocalTime(&namerec->data.death_time);
+ tm = localtime(&namerec->data.death_time);
ts = asctime(tm);
nl = strrchr_m( ts, '\n' );
if( NULL != nl )