Date: Tue, 22 Oct 2002 09:28:00 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 19893 for review Message-ID: <200210221628.g9MGS0JK013279@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <sys/types.h> @@ -50,7 +50,7 @@ #include <sys/mac.h> -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210221628.g9MGS0JK013279>