summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>2002-10-24 01:16:56 +0000
committerchris <chris@FreeBSD.org>2002-10-24 01:16:56 +0000
commitc831e4289ec229290193572a8163ea8750432acf (patch)
tree778f64c2631b7a35deb8ec2e2981bc87408a4b92 /lib/libc
parent9201f501eae07c0b19f600c15685348b896e9edb (diff)
downloadFreeBSD-src-c831e4289ec229290193572a8163ea8750432acf.zip
FreeBSD-src-c831e4289ec229290193572a8163ea8750432acf.tar.gz
Place mac_prepare() with the other mac_prepare*() functions.
Diffstat (limited to 'lib/libc')
-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