Fix warnings (clang 3.6)

This commit is contained in:
Nicolas Williams
2016-02-19 22:18:29 -06:00
parent dbf9750989
commit b4cf4de807
21 changed files with 37 additions and 35 deletions

View File

@@ -709,7 +709,7 @@ get_new_tickets(krb5_context context,
}
if (ticket_life != 0) {
if (abs(cred.times.endtime - cred.times.starttime - ticket_life) > 30) {
if (labs(cred.times.endtime - cred.times.starttime - ticket_life) > 30) {
char life[64];
unparse_time_approx(cred.times.endtime - cred.times.starttime,
life, sizeof(life));
@@ -717,7 +717,7 @@ get_new_tickets(krb5_context context,
}
}
if (renew_life) {
if (abs(cred.times.renew_till - cred.times.starttime - renew) > 30) {
if (labs(cred.times.renew_till - cred.times.starttime - renew) > 30) {
char life[64];
unparse_time_approx(cred.times.renew_till - cred.times.starttime,
life, sizeof(life));