Place mac_prepare() with the other mac_prepare*() functions.
This commit is contained in:
parent
9201f501ea
commit
c831e4289e
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user