diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-11-13 00:21:01 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-11-13 00:21:01 +0000 |
commit | dc70cf05d0a2a3c93984354904c5d0d63048bd3c (patch) | |
tree | 3e66d984b6f71295c5d0cb23dbea94615e09787f | |
parent | 13c44404b238af1070b494b7d268a4aa4a5a0ee0 (diff) | |
download | FreeBSD-src-dc70cf05d0a2a3c93984354904c5d0d63048bd3c.zip FreeBSD-src-dc70cf05d0a2a3c93984354904c5d0d63048bd3c.tar.gz |
The audit queue limit variables are size_t, so use size_t for the audit
queue length variables as well, avoiding storing the limit in a larger
type than the length.
Submitted by: sson
Sponsored by: Apple Inc.
MFC after: 1 week
-rw-r--r-- | sys/security/audit/audit.c | 4 | ||||
-rw-r--r-- | sys/security/audit/audit_private.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index 6588fc1..18b69d1 100644 --- a/sys/security/audit/audit.c +++ b/sys/security/audit/audit.c @@ -129,8 +129,8 @@ struct mtx audit_mtx; * outstanding in the system. */ struct kaudit_queue audit_q; -int audit_q_len; -int audit_pre_q_len; +size_t audit_q_len; +size_t audit_pre_q_len; /* * Audit queue control settings (minimum free, low/high water marks, etc.) diff --git a/sys/security/audit/audit_private.h b/sys/security/audit/audit_private.h index f81ce56..b79d966 100644 --- a/sys/security/audit/audit_private.h +++ b/sys/security/audit/audit_private.h @@ -275,8 +275,8 @@ extern struct mtx audit_mtx; extern struct cv audit_watermark_cv; extern struct cv audit_worker_cv; extern struct kaudit_queue audit_q; -extern int audit_q_len; -extern int audit_pre_q_len; +extern size_t audit_q_len; +extern size_t audit_pre_q_len; extern int audit_in_failure; /* |