dbus: Add explicit break statements to switch-default
There were couple of missing breaks in switch-default (before/after). While these did not have any noticeable issues due to falling over to the next step that just exited from the switch statement, it is cleaner and more robust to have each case use an explicit break. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6446420b24
commit
e987c70c85
2 changed files with 2 additions and 0 deletions
|
@ -934,6 +934,7 @@ static dbus_bool_t _wpa_dbus_dict_entry_get_array(
|
|||
break;
|
||||
case DBUS_TYPE_ARRAY:
|
||||
success = _wpa_dbus_dict_entry_get_binarray(&iter_array, entry);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1143,6 +1143,7 @@ dbus_bool_t wpas_dbus_getter_p2p_role(DBusMessageIter *iter, DBusError *error,
|
|||
break;
|
||||
default:
|
||||
str = "device";
|
||||
break;
|
||||
}
|
||||
|
||||
return wpas_dbus_simple_property_getter(iter, DBUS_TYPE_STRING, &str,
|
||||
|
|
Loading…
Reference in a new issue