aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2022-10-26 16:04:24 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-12-09 09:56:09 -0300
commitfa4a19277842fd09a4815a986f70e0fe0903836f (patch)
tree372ebd44b44e780cb87fe031c59a546a2b7eb271
parent545eefc2f5da61801ba82b7a32ca2589b769ec90 (diff)
downloadglibc-fa4a19277842fd09a4815a986f70e0fe0903836f.zip
glibc-fa4a19277842fd09a4815a986f70e0fe0903836f.tar.gz
glibc-fa4a19277842fd09a4815a986f70e0fe0903836f.tar.bz2
nscd: Use 64 bit time_t on libc nscd routines (BZ# 29402)
Although the nscd module is built with 64 bit time_t, the routines linked direct to libc.so need to use the internal symbols. Reviewed-by: DJ Delorie <dj@redhat.com>
-rw-r--r--nscd/nscd.h2
-rw-r--r--nscd/nscd_gethst_r.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nscd/nscd.h b/nscd/nscd.h
index 368091a..f153215 100644
--- a/nscd/nscd.h
+++ b/nscd/nscd.h
@@ -65,7 +65,7 @@ typedef enum
struct traced_file
{
/* Tracks the last modified time of the traced file. */
- time_t mtime;
+ __time64_t mtime;
/* Support multiple registered files per database. */
struct traced_file *next;
int call_res_init;
diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c
index 31d1358..5958f18 100644
--- a/nscd/nscd_gethst_r.c
+++ b/nscd/nscd_gethst_r.c
@@ -112,7 +112,7 @@ __nscd_get_nl_timestamp (void)
if (map == NULL
|| (map != NO_MAPPING
&& map->head->nscd_certainly_running == 0
- && map->head->timestamp + MAPPING_TIMEOUT < time_now ()))
+ && map->head->timestamp + MAPPING_TIMEOUT < time64_now ()))
map = __nscd_get_mapping (GETFDHST, "hosts", &__hst_map_handle.mapped);
if (map == NO_MAPPING)