PERFORCE change 155378 for review
Robert Watson
rwatson at FreeBSD.org
Sun Dec 28 07:19:07 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=155378
Change 155378 by rwatson at 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
/*
More information about the p4-projects
mailing list