From owner-p4-projects Tue Oct 22 9:28:37 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 553BD37B404; Tue, 22 Oct 2002 09:28:35 -0700 (PDT) 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 F3B8837B401 for ; Tue, 22 Oct 2002 09:28:34 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC1B743E4A for ; Tue, 22 Oct 2002 09:28:34 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9MGS0mV013282 for ; Tue, 22 Oct 2002 09:28:00 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9MGS0JK013279 for perforce@freebsd.org; Tue, 22 Oct 2002 09:28:00 -0700 (PDT) Date: Tue, 22 Oct 2002 09:28:00 -0700 (PDT) Message-Id: <200210221628.g9MGS0JK013279@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 Subject: PERFORCE change 19893 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=19893 Change 19893 by rwatson@rwatson_tislabs on 2002/10/22 09:27:26 Synchronize to in-tree version: drop unused code, whitespace, $FreeBSD$. Affected files ... .. //depot/projects/trustedbsd/mac/lib/libc/posix1e/mac.c#5 edit Differences ... ==== //depot/projects/trustedbsd/mac/lib/libc/posix1e/mac.c#5 (text+ko) ==== @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD: $ + * $FreeBSD: src/lib/libc/posix1e/mac.c,v 1.1 2002/10/22 14:36:11 rwatson Exp $ */ #include @@ -50,7 +50,7 @@ #include -static int internal_initialized; +static int internal_initialized; /* Default sets of labels for various query operations. */ static char *default_file_labels; @@ -218,25 +218,6 @@ return (0); } -static struct mac * -mac_alloc(int numelements) -{ - struct mac *mac; - - mac = (struct mac *) malloc(sizeof(*mac)); - if (mac == NULL) - return (NULL); - mac->m_string = malloc(MAC_MAX_LABEL_BUF_LEN); - if (mac->m_string == NULL) { - free(mac); - return (NULL); - } - bzero(mac->m_string, MAC_MAX_LABEL_BUF_LEN); - mac->m_buflen = MAC_MAX_LABEL_BUF_LEN; - - return (mac); -} - int mac_from_text(struct mac **mac, const char *text) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message