mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +03:00
libndr: Fix Coverity ID 1509020 Use of 32-bit time_t
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
deea7792ad
commit
6421b82c1d
@ -1288,7 +1288,7 @@ _PUBLIC_ void ndr_print_NTTIME_hyper(struct ndr_print *ndr, const char *name, NT
|
|||||||
_PUBLIC_ void ndr_print_time_t(struct ndr_print *ndr, const char *name, time_t t)
|
_PUBLIC_ void ndr_print_time_t(struct ndr_print *ndr, const char *name, time_t t)
|
||||||
{
|
{
|
||||||
if (t == (time_t)-1 || t == 0) {
|
if (t == (time_t)-1 || t == 0) {
|
||||||
ndr->print(ndr, "%-25s: (time_t)%d", name, (int)t);
|
ndr->print(ndr, "%-25s: (time_t)%" PRIi64, name, (int64_t)t);
|
||||||
} else {
|
} else {
|
||||||
ndr->print(ndr, "%-25s: %s", name, timestring(ndr, t));
|
ndr->print(ndr, "%-25s: %s", name, timestring(ndr, t));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user