#175 time_t may be unsigned or long
Closed 3 years ago by zym. Opened 3 years ago by zym.
https://github.com/mingzym/bind-dyndb-ldap.git timet  into  master

time_t maybe unsigned or long
Zhao Yongming • 3 years ago  
src/krb5_helper.c
file modified
+2 -2
@@ -65,8 +65,8 @@

  

  	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");

no initial comment

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

Could you plase open the PR on GitHub? I forgot to turn off PR in this repo.

Pull-Request has been closed by zym

3 years ago
Metadata