URL: https://github.com/freeipa/bind-dyndb-ldap/pull/14
Author: mingzym
 Title: #14: time_t maybe unsigned or long
Action: opened

PR body:
"""
when compiling with heimdal, the krb5_timestamp is set to long instead of the 
unsigned in mit-krb5.
"""

To pull the PR as Git branch:
git remote add ghbind-dyndb-ldap https://github.com/freeipa/bind-dyndb-ldap
git fetch ghbind-dyndb-ldap pull/14/head:pr14
git checkout pr14
From 452be8d305674b4bb15e74b41c87d0045c9ee7f9 Mon Sep 17 00:00:00 2001
From: Zhao Yongming <ming....@gmail.com>
Date: Mon, 3 Apr 2017 20:31:47 +0800
Subject: [PATCH] time_t maybe unsigned or long

---
 src/krb5_helper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/krb5_helper.c b/src/krb5_helper.c
index 5466dd8..5d7ee6a 100644
--- a/src/krb5_helper.c
+++ b/src/krb5_helper.c
@@ -65,8 +65,8 @@ check_credentials(krb5_context context,
 
 	krberr = krb5_timeofday(context, &now);
 	CHECK_KRB5(context, krberr, "Failed to get timeofday");
-	log_debug(2, "krb5_timeofday() = %u ; creds.times.endtime = %u",
-		  now, creds.times.endtime);
+	log_debug(2, "krb5_timeofday() = %ld ; creds.times.endtime = %ld",
+		  (long) now, (long) creds.times.endtime);
 
 	if (now > (creds.times.endtime - MIN_TIME)) {
 		log_debug(2, "Credentials in cache expired");
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to