Place mac_prepare() with the other mac_prepare*() functions.
This commit is contained in:
parent
4df6daba42
commit
4bae1674ce
@ -241,6 +241,16 @@ mac_from_text(struct mac **mac, const char *text)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
mac_to_text(struct mac *mac, char **text)
|
||||||
|
{
|
||||||
|
|
||||||
|
*text = strdup(mac->m_string);
|
||||||
|
if (*text == NULL)
|
||||||
|
return (ENOMEM);
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
mac_prepare(struct mac **mac, char *elements)
|
mac_prepare(struct mac **mac, char *elements)
|
||||||
{
|
{
|
||||||
@ -266,16 +276,6 @@ mac_prepare(struct mac **mac, char *elements)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
mac_to_text(struct mac *mac, char **text)
|
|
||||||
{
|
|
||||||
|
|
||||||
*text = strdup(mac->m_string);
|
|
||||||
if (*text == NULL)
|
|
||||||
return (ENOMEM);
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
mac_prepare_file_label(struct mac **mac)
|
mac_prepare_file_label(struct mac **mac)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user