From owner-p4-projects@FreeBSD.ORG Tue Mar 28 18:28:50 2006 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 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: 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, 28 Mar 2006 18:28:51 -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) { + }