From owner-p4-projects@FreeBSD.ORG Sat Jan 21 15:30:49 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 E8B8A16A423; Sat, 21 Jan 2006 15:30:48 +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 AA2A316A422 for ; Sat, 21 Jan 2006 15:30:48 +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 6E83E43D45 for ; Sat, 21 Jan 2006 15:30:48 +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 k0LFUm95087603 for ; Sat, 21 Jan 2006 15:30:48 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 k0LFUmj6087600 for perforce@freebsd.org; Sat, 21 Jan 2006 15:30:48 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sat, 21 Jan 2006 15:30:48 GMT Message-Id: <200601211530.k0LFUmj6087600@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 90094 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:30:49 -0000 http://perforce.freebsd.org/chv.cgi?CH=90094 Change 90094 by rwatson@rwatson_sesame on 2006/01/21 15:30:22 Remove unnecessary argument sanity checks. Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#11 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#11 (text+ko) ==== @@ -50,12 +50,6 @@ char sel, sub; char *last; - - if ((auditstr == NULL) || (masks == NULL)) { - errno = EINVAL; - return (-1); - } - bzero(&c, sizeof(c)); bzero(class_ent_name, sizeof(class_ent_name)); bzero(class_ent_desc, sizeof(class_ent_desc)); @@ -122,11 +116,6 @@ char *strptr = auditstr; u_char sel; - if ((auditstr == NULL) || (masks == NULL)) { - return (EINVAL); - return (-1); - } - bzero(&c, sizeof(c)); bzero(class_ent_name, sizeof(class_ent_name)); bzero(class_ent_desc, sizeof(class_ent_desc));