diff options
| author | Chris Costello <chris@FreeBSD.org> | 2002-10-24 01:16:56 +0000 |
|---|---|---|
| committer | Chris Costello <chris@FreeBSD.org> | 2002-10-24 01:16:56 +0000 |
| commit | 4bae1674ce22d73383ff03c86d26b9ceacab8bc9 (patch) | |
| tree | 778f64c2631b7a35deb8ec2e2981bc87408a4b92 | |
| parent | 4df6daba425f8ac1ab938d20212d78f5b94c6b57 (diff) | |
Notes
| -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 ef22a6e72049..ee6fd739d2a3 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; |
