Date: Tue, 4 Oct 2005 12:14:16 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 84781 for review Message-ID: <200510041214.j94CEG3G091189@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510041214.j94CEG3G091189>