From owner-p4-projects@FreeBSD.ORG Sat Jan 21 15:29:47 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 3244416A422; Sat, 21 Jan 2006 15:29:47 +0000 (GMT) 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 E86CA16A41F for ; Sat, 21 Jan 2006 15:29:46 +0000 (GMT) (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 B0C9E43D45 for ; Sat, 21 Jan 2006 15:29:46 +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 k0LFTks0087449 for ; Sat, 21 Jan 2006 15:29:46 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 k0LFTkrZ087446 for perforce@freebsd.org; Sat, 21 Jan 2006 15:29:46 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sat, 21 Jan 2006 15:29:46 GMT Message-Id: <200601211529.k0LFTkrZ087446@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 90093 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: Sat, 21 Jan 2006 15:29:48 -0000 http://perforce.freebsd.org/chv.cgi?CH=90093 Change 90093 by rwatson@rwatson_sesame on 2006/01/21 15:28:57 Remove unneeded class entry pointers. Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#10 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#10 (text+ko) ==== @@ -45,7 +45,7 @@ { char class_ent_name[AU_CLASS_NAME_MAX]; char class_ent_desc[AU_CLASS_DESC_MAX]; - struct au_class_ent c, *cp; + struct au_class_ent c; char *tok; char sel, sub; char *last; @@ -84,7 +84,7 @@ } else sel = AU_PRS_BOTH; - if ((cp = getauclassnam_r(&c, tok)) != NULL) { + if ((getauclassnam_r(&c, tok)) != NULL) { if (sub) SUB_FROM_MASK(masks, c.ac_class, sel); else @@ -118,7 +118,7 @@ { char class_ent_name[AU_CLASS_NAME_MAX]; char class_ent_desc[AU_CLASS_DESC_MAX]; - struct au_class_ent c, *cp; + struct au_class_ent c; char *strptr = auditstr; u_char sel; @@ -138,7 +138,7 @@ * the success or failure masks. */ setauclass(); - while ((cp = getauclassent_r(&c)) != NULL) { + while ((getauclassent_r(&c)) != NULL) { sel = 0; /* Dont do anything for class = no. */