From owner-trustedbsd-cvs@FreeBSD.ORG Tue Mar 28 18:29:07 2006 Return-Path: X-Original-To: trustedbsd-cvs@freebsd.org Delivered-To: trustedbsd-cvs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FA4016A4C7 for ; Tue, 28 Mar 2006 18:29:07 +0000 (UTC) (envelope-from owner-perforce@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B16C643D45 for ; Tue, 28 Mar 2006 18:28:56 +0000 (GMT) (envelope-from owner-perforce@freebsd.org) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by cyrus.watson.org (Postfix) with ESMTP id 2C3E646CE0 for ; Tue, 28 Mar 2006 13:28:55 -0500 (EST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id B7A025B73E; Tue, 28 Mar 2006 18:28:53 +0000 (GMT) (envelope-from owner-perforce@freebsd.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id AB71316A44E; Tue, 28 Mar 2006 18:28:50 +0000 (UTC) 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 395AB16A43A for ; Tue, 28 Mar 2006 18:28:50 +0000 (UTC) (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 DD46143DDD for ; Tue, 28 Mar 2006 18:28:40 +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 k2SISeSq052599 for ; Tue, 28 Mar 2006 18:28:40 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 k2SISee0052596 for perforce@freebsd.org; Tue, 28 Mar 2006 18:28:40 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 28 Mar 2006 18:28:40 GMT Message-Id: <200603281828.k2SISee0052596@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 94189 for review X-BeenThere: trustedbsd-cvs@FreeBSD.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: TrustedBSD CVS and Perforce commit message list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2006 18:29:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=94189 Change 94189 by rwatson@rwatson_zoo on 2006/03/28 18:27:56 Don't compile filter functions as static, or the compiler will helpfully omit them as unused. As module symbols are local to the moduly with dlopen(), this won't generate conflicts. Affected files ... .. //depot/projects/trustedbsd/openbsm/modules/auditfilter_noop/auditfilter_noop.c#2 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/modules/auditfilter_noop/auditfilter_noop.c#2 (text+ko) ==== @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/modules/auditfilter_noop/auditfilter_noop.c#1 $ + * $P4: //depot/projects/trustedbsd/openbsm/modules/auditfilter_noop/auditfilter_noop.c#2 $ */ /* @@ -38,33 +38,36 @@ #include #include -static int +int AUDIT_FILTER_ATTACH(void **instance, int argc, char *argv[]) { return (0); } -static int +int AUDIT_FILTER_REINIT(void *instance, int argc, char *argv[]) { return (0); } -static void +void AUDIT_FILTER_RECORD(void *instance, struct timespec *ts, int token_count, const tokenstr_t *tok[]) { + } -static void +void AUDIT_FILTER_BSMRECORD(void *instance, struct timespec *ts, u_char *data, u_int len) { + } -static void +void AUDIT_FILTER_DETACH(void *instance) { + }