From ac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 10 Apr 2004 20:18:22 +0000 Subject: r152: a quick airport commit .... added ldbedit, a _really_ useful command added ldbadd, ldbdel, ldbsearch and ldbmodify to build solved lots of timezone issues, we now pass the torture tests with client and server in different zones fixed several build issues I know this breaks the no-LDAP build. Wait till I arrive in San Jose for that fix. (This used to be commit af34710d4da1841653624fe304b1c8d812c0fdd9) --- source4/nmbd/nmbd_namelistdb.c | 4 ++-- source4/nmbd/nmbd_winsserver.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/nmbd') 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 ) -- cgit