From 7f4bb501768b9b3f856f91fbc8b9c80a2a4aaa04 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Tue, 5 Oct 2021 23:24:24 -0500 Subject: [PATCH] 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");