libnm-core,core,cli: fix spelling of NM_IP_TUNNEL_MODE_UNKNOWN

Fixes: b614a5ec61
Fixes: ae8c7a8967
Fixes: 570fdce93f
This commit is contained in:
Dan Williams 2016-01-20 11:10:48 -06:00
parent b610d2dc0c
commit 0a12a1711c
4 changed files with 8 additions and 8 deletions

View file

@ -6184,7 +6184,7 @@ cleanup_tun:
gs_free char *values_str = NULL;
values = nm_utils_enum_get_values (nm_ip_tunnel_mode_get_type (),
NM_IP_TUNNEL_MODE_UKNOWN + 1,
NM_IP_TUNNEL_MODE_UNKNOWN + 1,
G_MAXINT);
values_str = g_strjoinv (",", (char **) values);
g_set_error (error, NMCLI_ERROR, NMC_RESULT_ERROR_USER_INPUT,
@ -6787,7 +6787,7 @@ gen_func_ip_tunnel_mode (const char *text, int state)
gs_free const char **words = NULL;
words = nm_utils_enum_get_values (nm_ip_tunnel_mode_get_type (),
NM_IP_TUNNEL_MODE_UKNOWN + 1,
NM_IP_TUNNEL_MODE_UNKNOWN + 1,
G_MAXINT);
return nmc_rl_gen_func_basic (text, state, words);
}

View file

@ -1420,7 +1420,7 @@ nmc_property_ip_tunnel_allowed_mode (NMSetting *setting, const char *prop)
if (!words)
words = nm_utils_enum_get_values (nm_ip_tunnel_mode_get_type (),
NM_IP_TUNNEL_MODE_UKNOWN + 1,
NM_IP_TUNNEL_MODE_UNKNOWN + 1,
G_MAXINT);
return words;
}
@ -1825,7 +1825,7 @@ nmc_property_ip_tunnel_set_mode (NMSetting *setting, const char *prop,
gs_free char *values_str = NULL;
values = nm_utils_enum_get_values (nm_ip_tunnel_mode_get_type (),
NM_IP_TUNNEL_MODE_UKNOWN + 1,
NM_IP_TUNNEL_MODE_UNKNOWN + 1,
G_MAXINT);
values_str = g_strjoinv (",", (char **) values);
g_set_error (error, 1, 0, _("invalid mode '%s', use one of %s"),

View file

@ -692,7 +692,7 @@ typedef enum /*< flags >*/ {
* Since: 1.2
*/
typedef enum {
NM_IP_TUNNEL_MODE_UKNOWN = 0,
NM_IP_TUNNEL_MODE_UNKNOWN = 0,
NM_IP_TUNNEL_MODE_IPIP = 1,
NM_IP_TUNNEL_MODE_GRE = 2,
NM_IP_TUNNEL_MODE_SIT = 3,

View file

@ -554,13 +554,13 @@ platform_link_to_tunnel_mode (const NMPlatformLink *link)
else if (lnk->proto == IPPROTO_IPV6)
return NM_IP_TUNNEL_MODE_IP6IP6;
else
return NM_IP_TUNNEL_MODE_UKNOWN;
return NM_IP_TUNNEL_MODE_UNKNOWN;
case NM_LINK_TYPE_IPIP:
return NM_IP_TUNNEL_MODE_IPIP;
case NM_LINK_TYPE_SIT:
return NM_IP_TUNNEL_MODE_SIT;
default:
g_return_val_if_reached (NM_IP_TUNNEL_MODE_UKNOWN);
g_return_val_if_reached (NM_IP_TUNNEL_MODE_UNKNOWN);
}
}
@ -997,7 +997,7 @@ create_device (NMDeviceFactory *factory,
mode = platform_link_to_tunnel_mode (plink);
}
if (mode == NM_IP_TUNNEL_MODE_UKNOWN)
if (mode == NM_IP_TUNNEL_MODE_UNKNOWN)
return NULL;
return (NMDevice *) g_object_new (NM_TYPE_DEVICE_IP_TUNNEL,