From owner-p4-projects@FreeBSD.ORG Tue Oct 4 12:14:17 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E9D2216A421; Tue, 4 Oct 2005 12:14:16 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BED1916A41F for ; Tue, 4 Oct 2005 12:14:16 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8641043D48 for ; Tue, 4 Oct 2005 12:14:16 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j94CEG02091192 for ; Tue, 4 Oct 2005 12:14:16 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j94CEG3G091189 for perforce@freebsd.org; Tue, 4 Oct 2005 12:14:16 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 4 Oct 2005 12:14:16 GMT Message-Id: <200510041214.j94CEG3G091189@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 84781 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 12:14:17 -0000 http://perforce.freebsd.org/chv.cgi?CH=84781 Change 84781 by rwatson@rwatson_peppercorn on 2005/10/04 12:13:31 Staticize kau_{open,write,close}() since they are only used in kern_bsm_audit.c. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/security/audit/audit_private.h#6 edit .. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#16 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/security/audit/audit_private.h#6 (text+ko) ==== @@ -211,10 +211,6 @@ /* * Kernel versions of the libbsm audit record functions. */ -struct au_record *kau_open(void); -int kau_write(struct au_record *rec, token_t *m); -void kau_close(struct au_record *rec, - struct timespec *endtime, short event); void kau_free(struct au_record *rec); void kau_init(void); ==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#16 (text+ko) ==== @@ -84,7 +84,7 @@ * memory allocated above and also the list of tokens associated * with this record */ -struct au_record * +static struct au_record * kau_open(void) { struct au_record *rec = NULL; @@ -131,7 +131,8 @@ * Store the token with the record descriptor * */ -int kau_write(struct au_record *rec, struct au_token *tok) +static int +kau_write(struct au_record *rec, struct au_token *tok) { if(tok == NULL) { return -1; /* Invalid Token */ @@ -153,7 +154,7 @@ * Close out the audit record by adding the header token, identifying * any missing tokens. Write out the tokens to the record memory. */ -void +static void kau_close(struct au_record *rec, struct timespec *ctime, short event) { u_char *dptr;