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);
|
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
|
gboolean
|
||||||
nm_match_spec_hwaddr (const GSList *specs, const char *hwaddr)
|
nm_match_spec_hwaddr (const GSList *specs, const char *hwaddr)
|
||||||
{
|
{
|
||||||
|
@@ -327,19 +327,6 @@ nm_ip6_config_merge_setting (NMIP6Config *ip6_config, NMSettingIP6Config *settin
|
|||||||
nm_ip6_config_set_never_default (ip6_config, TRUE);
|
nm_ip6_config_set_never_default (ip6_config, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/******************************************************************/
|
/******************************************************************/
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user