Skip to content

Commit

Permalink
login: use sizeof(audit_cond) consistently, NFC
Browse files Browse the repository at this point in the history
The other three instances were already converted to use audit_cond, this
one was just changed from sizeof(long) -> sizeof(int).

(cherry picked from commit 7f4bb50)
  • Loading branch information
kevans91 committed Oct 9, 2021
1 parent 48e109c commit c8d1940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr.bin/login/login_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c8d1940

Please sign in to comment.