PERFORCE change 19893 for review
Robert Watson
rwatson at freebsd.org
Tue Oct 22 16:28:00 GMT 2002
http://perforce.freebsd.org/chv.cgi?CH=19893
Change 19893 by rwatson at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list