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) {