login: use sizeof(audit_cond) consistently, NFC

The other three instances were already converted to use audit_cond, this
one was just changed from sizeof(long) -> sizeof(int).
This commit is contained in:
Kyle Evans 2021-10-05 23:24:24 -05:00
parent 8d3cd7767a
commit 7f4bb50176

View File

@ -180,7 +180,7 @@ audit_logout(void)
int au_cond;
/* If we are not auditing, don't cut an audit record; just return. */
if (auditon(A_GETCOND, &au_cond, sizeof(int)) < 0) {
if (auditon(A_GETCOND, &au_cond, sizeof(au_cond)) < 0) {
if (errno == ENOSYS)
return;
errx(1, "could not determine audit condition");