git: 7f4bb501768b - main - login: use sizeof(audit_cond) consistently, NFC
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Oct 2021 04:25:45 UTC
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=7f4bb501768b9b3f856f91fbc8b9c80a2a4aaa04
commit 7f4bb501768b9b3f856f91fbc8b9c80a2a4aaa04
Author: Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-10-06 04:24:24 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-06 04:25:29 +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).
---
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");