svn commit: r184904 - head/sys/security/audit

Robert Watson rwatson at FreeBSD.org
Wed Nov 12 16:21:02 PST 2008


Author: rwatson
Date: Thu Nov 13 00:21:01 2008
New Revision: 184904
URL: http://svn.freebsd.org/changeset/base/184904

Log:
  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

Modified:
  head/sys/security/audit/audit.c
  head/sys/security/audit/audit_private.h

Modified: head/sys/security/audit/audit.c
==============================================================================
--- head/sys/security/audit/audit.c	Thu Nov 13 00:05:37 2008	(r184903)
+++ head/sys/security/audit/audit.c	Thu Nov 13 00:21:01 2008	(r184904)
@@ -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.)

Modified: head/sys/security/audit/audit_private.h
==============================================================================
--- head/sys/security/audit/audit_private.h	Thu Nov 13 00:05:37 2008	(r184903)
+++ head/sys/security/audit/audit_private.h	Thu Nov 13 00:21:01 2008	(r184904)
@@ -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;
 
 /*


More information about the svn-src-all mailing list