summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/posix1e/mac.c')
-rw-r--r--lib/libc/posix1e/mac.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libc/posix1e/mac.c b/lib/libc/posix1e/mac.c
index ef22a6e..ee6fd73 100644
--- a/lib/libc/posix1e/mac.c
+++ b/lib/libc/posix1e/mac.c
@@ -242,6 +242,16 @@ mac_from_text(struct mac **mac, const char *text)
}
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)
{
struct mac *temp;
@@ -267,16 +277,6 @@ mac_prepare(struct mac **mac, char *elements)
}
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)
{
int error;
OpenPOWER on IntegriCloud