krb5: use new krb5_time_abs() function
From Apple Heimdal-597.121.1: replace calls to labs() with krb5_time_abs()
This commit is contained in:
@@ -54,11 +54,11 @@ check_set_time(krb5_context context)
|
||||
if (ret)
|
||||
krb5_err(context, 1, ret, "krb5_us_timeofday");
|
||||
|
||||
diff2 = labs(sec - tv.tv_sec);
|
||||
diff2 = krb5_time_abs(sec, tv.tv_sec);
|
||||
|
||||
if (diff2 < 9 || diff > 11)
|
||||
krb5_errx(context, 1, "set time error: diff: %ld",
|
||||
labs(sec - tv.tv_sec));
|
||||
krb5_time_abs(sec, tv.tv_sec));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user