git: c8d19408febd - stable/13 - login: use sizeof(audit_cond) consistently, NFC
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Oct 2021 00:57:04 UTC
The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=c8d19408febd075dbbe314f47d830deb02305e73 commit c8d19408febd075dbbe314f47d830deb02305e73 Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2021-10-06 04:24:24 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2021-10-09 00:56:53 +0000 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). (cherry picked from commit 7f4bb501768b9b3f856f91fbc8b9c80a2a4aaa04) --- usr.bin/login/login_audit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/login/login_audit.c b/usr.bin/login/login_audit.c index a45adb7b9e71..91aa4336c659 100644 --- a/usr.bin/login/login_audit.c +++ b/usr.bin/login/login_audit.c @@ -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");