diff options
author | chris <chris@FreeBSD.org> | 2002-10-24 01:16:56 +0000 |
---|---|---|
committer | chris <chris@FreeBSD.org> | 2002-10-24 01:16:56 +0000 |
commit | c831e4289ec229290193572a8163ea8750432acf (patch) | |
tree | 778f64c2631b7a35deb8ec2e2981bc87408a4b92 /lib/libc/posix1e | |
parent | 9201f501eae07c0b19f600c15685348b896e9edb (diff) | |
download | FreeBSD-src-c831e4289ec229290193572a8163ea8750432acf.zip FreeBSD-src-c831e4289ec229290193572a8163ea8750432acf.tar.gz |
Place mac_prepare() with the other mac_prepare*() functions.
Diffstat (limited to 'lib/libc/posix1e')
-rw-r--r-- | lib/libc/posix1e/mac.c | 20 |
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; |