Date: Tue, 13 Jan 2004 19:00:02 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 45316 for review Message-ID: <200401140300.i0E302N6032757@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=45316 Change 45316 by rwatson@rwatson_paprika on 2004/01/13 18:59:23 Don't return a return value from kau_close() -- it's not generated or used. Affected files ... .. //depot/projects/trustedbsd/audit2/sys/security/audit/audit_private.h#4 edit .. //depot/projects/trustedbsd/audit2/sys/security/audit/bsm_audit.c#8 edit Differences ... ==== //depot/projects/trustedbsd/audit2/sys/security/audit/audit_private.h#4 (text+ko) ==== @@ -128,7 +128,7 @@ */ struct au_record *kau_open(void); int kau_write(struct au_record *rec, token_t *m); -int kau_close(struct au_record *rec, +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/audit2/sys/security/audit/bsm_audit.c#8 (text+ko) ==== @@ -149,7 +149,8 @@ * Close out the audit record by adding the header token, identifying * any missing tokens. Write out the tokens to the record memory. */ -int kau_close(struct au_record *rec, struct timespec *ctime, short event) +void +kau_close(struct au_record *rec, struct timespec *ctime, short event) { u_char *dptr; size_t tot_rec_size; @@ -178,7 +179,6 @@ dptr += cur->len; } } - return (0); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401140300.i0E302N6032757>