Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2008 15:19:06 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 155378 for review
Message-ID:  <200812281519.mBSFJ6d3074717@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=155378

Change 155378 by rwatson@rwatson_lethe on 2008/12/28 15:18:20

	Eliminate warnings when building bsm_audit.c on systems without
	audit system calls: au_assemble() doesn't need all of its local
	variables.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_audit.c#35 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_audit.c#35 (text+ko) ====

@@ -30,7 +30,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_audit.c#34 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_audit.c#35 $
  */
 
 #include <sys/types.h>
@@ -219,13 +219,16 @@
 static int
 au_assemble(au_record_t *rec, short event)
 {
+#ifdef HAVE_AUDIT_SYSCALLS
+	struct in6_addr *aptr;
+	struct auditinfo_addr aia;
+	struct timeval tm;
+	size_t hdrsize;
+#endif /* HAVE_AUDIT_SYSCALLS */
 	token_t *header, *tok, *trailer;
-	size_t tot_rec_size, hdrsize;
+	size_t tot_rec_size;
 	u_char *dptr;
-	struct in6_addr *aptr;
 	int error;
-	struct auditinfo_addr aia;
-	struct timeval tm;
 
 #ifdef HAVE_AUDIT_SYSCALLS
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812281519.mBSFJ6d3074717>