all: unify spelling of "fall-through" comment for switch statements

We used "/* fall through */" and "/* fall-through */" inconsistently.
Rename to use only one variant.
This commit is contained in:
Thomas Haller
2020-02-21 12:56:03 +01:00
parent 95891e78e7
commit ffa098edae
10 changed files with 20 additions and 20 deletions

View File

@@ -1178,7 +1178,7 @@ nm_utils_security_valid (NMUtilsSecurityType type,
case NMU_SEC_LEAP: /* require PRIVACY bit for LEAP? */
if (adhoc)
return FALSE;
/* fall through */
/* fall-through */
case NMU_SEC_STATIC_WEP:
if (!have_ap) {
if (wifi_caps & (NM_WIFI_DEVICE_CAP_CIPHER_WEP40 | NM_WIFI_DEVICE_CAP_CIPHER_WEP104))

View File

@@ -200,7 +200,7 @@ nm_vpn_service_plugin_disconnect (NMVpnServicePlugin *plugin, GError **err)
break;
case NM_VPN_SERVICE_STATE_STARTING:
_emit_failure (plugin, NM_VPN_PLUGIN_FAILURE_CONNECT_FAILED);
/* fall through */
/* fall-through */
case NM_VPN_SERVICE_STATE_STARTED:
nm_vpn_service_plugin_set_state (plugin, NM_VPN_SERVICE_STATE_STOPPING);
ret = NM_VPN_SERVICE_PLUGIN_GET_CLASS (plugin)->disconnect (plugin, err);

View File

@@ -1241,7 +1241,7 @@ dcb_state (NMDevice *device, gboolean timeout)
break;
}
_LOGD (LOGD_DCB, "dcb_state() preconfig down falling through");
/* fall through */
/* fall-through */
case DCB_WAIT_CARRIER_PRECONFIG_UP:
if (timeout || carrier) {
_LOGD (LOGD_DCB, "dcb_state() preconfig up configuring DCB");
@@ -1265,7 +1265,7 @@ dcb_state (NMDevice *device, gboolean timeout)
break;
}
_LOGD (LOGD_DCB, "dcb_state() postconfig down falling through");
/* fall through */
/* fall-through */
case DCB_WAIT_CARRIER_POSTCONFIG_UP:
if (timeout || carrier) {
_LOGD (LOGD_DCB, "dcb_state() postconfig up starting IP");

View File

@@ -8097,7 +8097,7 @@ dhcp4_state_changed (NMDhcpClient *client,
/* Ignore expiry before we even have a lease (NAK, old lease, etc) */
if (priv->ip_state_4 == NM_DEVICE_IP_STATE_CONF)
break;
/* fall through */
/* fall-through */
case NM_DHCP_STATE_DONE:
case NM_DHCP_STATE_FAIL:
case NM_DHCP_STATE_TERMINATED:
@@ -8864,7 +8864,7 @@ dhcp6_state_changed (NMDhcpClient *client,
*/
if (priv->dhcp6.mode == NM_NDISC_DHCP_LEVEL_OTHERCONF)
break;
/* fall through */
/* fall-through */
case NM_DHCP_STATE_DONE:
case NM_DHCP_STATE_FAIL:
dhcp6_fail (self, state);
@@ -13906,7 +13906,7 @@ device_ipx_changed (NMPlatform *platform,
(gpointer) nmp_object_ref (NMP_OBJECT_UP_CAST (addr)));
}
/* fall through */
/* fall-through */
case NMP_OBJECT_TYPE_IP6_ROUTE:
if (!priv->queued_ip_config_id_6) {
priv->queued_ip_config_id_6 = g_idle_add (queued_ip6_config_change, self);

View File

@@ -548,7 +548,7 @@ connect_context_step (NMModemBroadband *self)
switch (ctx->step) {
case CONNECT_STEP_FIRST:
ctx->step++;
/* fall through */
/* fall-through */
case CONNECT_STEP_WAIT_FOR_SIM:
if (MODEM_CAPS_3GPP (ctx->caps) && !self->_priv.sim_iface) {
@@ -556,7 +556,7 @@ connect_context_step (NMModemBroadband *self)
break;
}
ctx->step++;
/* fall through */
/* fall-through */
case CONNECT_STEP_UNLOCK:
if ( MODEM_CAPS_3GPP (ctx->caps)
@@ -577,7 +577,7 @@ connect_context_step (NMModemBroadband *self)
break;
}
ctx->step++;
/* fall through */
/* fall-through */
case CONNECT_STEP_WAIT_FOR_READY: {
GError *error = NULL;
@@ -605,7 +605,7 @@ connect_context_step (NMModemBroadband *self)
ctx->step++;
}
/* fall through */
/* fall-through */
case CONNECT_STEP_CONNECT:
if (!ctx->connect_properties)
break;
@@ -639,7 +639,7 @@ connect_context_step (NMModemBroadband *self)
}
ctx->step++;
/* fall through */
/* fall-through */
case CONNECT_STEP_LAST:
if (self->_priv.ipv4_config || self->_priv.ipv6_config)

View File

@@ -1805,7 +1805,7 @@ _check_resconf_immutable (NMDnsManagerResolvConfManager rc_manager)
case NM_DNS_MANAGER_RESOLV_CONF_MAN_UNKNOWN:
case NM_DNS_MANAGER_RESOLV_CONF_MAN_IMMUTABLE:
nm_assert_not_reached ();
/* fall through */
/* fall-through */
case NM_DNS_MANAGER_RESOLV_CONF_MAN_UNMANAGED:
return NM_DNS_MANAGER_RESOLV_CONF_MAN_UNMANAGED;
default:
@@ -1825,7 +1825,7 @@ _check_resconf_immutable (NMDnsManagerResolvConfManager rc_manager)
case NM_DNS_MANAGER_RESOLV_CONF_MAN_UNMANAGED:
case NM_DNS_MANAGER_RESOLV_CONF_MAN_IMMUTABLE:
nm_assert_not_reached ();
/* fall through */
/* fall-through */
case NM_DNS_MANAGER_RESOLV_CONF_MAN_FILE:
case NM_DNS_MANAGER_RESOLV_CONF_MAN_RESOLVCONF:
case NM_DNS_MANAGER_RESOLV_CONF_MAN_NETCONFIG:

View File

@@ -1355,7 +1355,7 @@ _string_append_val (GString *str, const char *value)
case '#':
case ':':
g_string_append_c (str, '+');
/* fall through */
/* fall-through */
default:
g_string_append_c (str, *value);
}

View File

@@ -3335,7 +3335,7 @@ add:
_LOGI (LOGD_PLATFORM, "(%s): '%s' plugin not available; creating generic device",
plink->name, nm_link_type_to_string (plink->type));
nm_plugin_missing = TRUE;
/* fall through */
/* fall-through */
default:
device = nm_device_generic_new (plink, nm_plugin_missing);
break;

View File

@@ -1536,7 +1536,7 @@ test_nm_utils_strbuf_append (void)
_strbuf_append_c (&t_buf, &t_len, str[0]);
break;
}
/* fall through */
/* fall-through */
case 1:
_strbuf_append_str (&t_buf, &t_len, str);
break;
@@ -1545,7 +1545,7 @@ test_nm_utils_strbuf_append (void)
_strbuf_append (&t_buf, &t_len, "%c", str[0]);
break;
}
/* fall through */
/* fall-through */
case 3:
_strbuf_append (&t_buf, &t_len, "%s", str);
break;

View File

@@ -619,7 +619,7 @@ _set_vpn_state (NMVpnConnection *self,
}
vpn_cleanup (self, parent_dev);
/* fall through */
/* fall-through */
default:
priv->secrets_idx = SECRETS_REQ_SYSTEM;
break;
@@ -1580,7 +1580,7 @@ nm_vpn_connection_ip4_config_get (NMVpnConnection *self, GVariant *dict)
switch (g_variant_n_children (v)) {
case 5:
g_variant_get_child (v, 4, "u", &route.pref_src);
/* fall through */
/* fall-through */
case 4:
g_variant_get_child (v, 0, "u", &route.network);
g_variant_get_child (v, 1, "u", &plen);