From 612c71b24c39948168cefb691de563b56ff9915b Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 15 Oct 2013 13:48:22 +0200 Subject: heimdal: krb5_deltat may be int32_t or time_t Cast to int for usable in printf using %d. FIXME: Or rather to int64_t since time_t may be long int? --- src/providers/ldap/ldap_child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c index 465ea676..d6435b93 100644 --- a/src/providers/ldap/ldap_child.c +++ b/src/providers/ldap/ldap_child.c @@ -97,7 +97,7 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size, /* ticket lifetime */ SAFEALIGN_COPY_INT32_CHECK(&ibuf->lifetime, buf + p, size, &p); - DEBUG(SSSDBG_TRACE_LIBS, ("lifetime: %d\n", ibuf->lifetime)); + DEBUG(SSSDBG_TRACE_LIBS, ("lifetime: %d\n", (int)ibuf->lifetime)); return EOK; } -- cgit