trivial: move back nm_match_spec_string()
Was moved by accident.
This commit is contained in:
@@ -153,6 +153,19 @@ nm_utils_ip4_prefix_to_netmask (guint32 prefix)
|
||||
return (guint32) htonl (netmask);
|
||||
}
|
||||
|
||||
gboolean
|
||||
nm_match_spec_string (const GSList *specs, const char *match)
|
||||
{
|
||||
const GSList *iter;
|
||||
|
||||
for (iter = specs; iter; iter = g_slist_next (iter)) {
|
||||
if (!g_ascii_strcasecmp ((const char *) iter->data, match))
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
nm_match_spec_hwaddr (const GSList *specs, const char *hwaddr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user