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:
parent
8d3cd7767a
commit
7f4bb50176
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user