From 4bae1674ce22d73383ff03c86d26b9ceacab8bc9 Mon Sep 17 00:00:00 2001 From: Chris Costello Date: Thu, 24 Oct 2002 01:16:56 +0000 Subject: [PATCH] Place mac_prepare() with the other mac_prepare*() functions. --- lib/libc/posix1e/mac.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/libc/posix1e/mac.c b/lib/libc/posix1e/mac.c index ef22a6e72049..ee6fd739d2a3 100644 --- a/lib/libc/posix1e/mac.c +++ b/lib/libc/posix1e/mac.c @@ -241,6 +241,16 @@ mac_from_text(struct mac **mac, const char *text) return (0); } +int +mac_to_text(struct mac *mac, char **text) +{ + + *text = strdup(mac->m_string); + if (*text == NULL) + return (ENOMEM); + return (0); +} + int mac_prepare(struct mac **mac, char *elements) { @@ -266,16 +276,6 @@ mac_prepare(struct mac **mac, char *elements) return (0); } -int -mac_to_text(struct mac *mac, char **text) -{ - - *text = strdup(mac->m_string); - if (*text == NULL) - return (ENOMEM); - return (0); -} - int mac_prepare_file_label(struct mac **mac) {