Place mac_prepare() with the other mac_prepare*() functions.

This commit is contained in:
chris 2002-10-24 01:16:56 +00:00
parent 9201f501ea
commit c831e4289e

View File

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