PERFORCE change 45316 for review

Robert Watson rwatson at FreeBSD.org
Wed Jan 14 03:00:02 GMT 2004


http://perforce.freebsd.org/chv.cgi?CH=45316

Change 45316 by rwatson at 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);
 }
 
 /*
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list