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
This commit is contained in:
Robert Watson 2008-11-13 00:21:01 +00:00
parent fa1e6ef4ef
commit 618521b1a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184904
2 changed files with 4 additions and 4 deletions

View File

@ -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.)

View File

@ -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;
/*