mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-29 16:24:03 -05:00
P2P: Coding style cleanup
This commit is contained in:
parent
70b9a5ca6a
commit
e24b918202
@ -484,25 +484,24 @@ DBusMessage * wpas_dbus_handler_p2p_connect(DBusMessage *message,
|
|||||||
} else {
|
} else {
|
||||||
switch (new_pin) {
|
switch (new_pin) {
|
||||||
case -2:
|
case -2:
|
||||||
err_msg = "connect failed due to"
|
err_msg = "connect failed due to channel "
|
||||||
" channel unavailability.";
|
"unavailability.";
|
||||||
iface = WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE;
|
iface = WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case -3:
|
case -3:
|
||||||
err_msg = "connect failed due to"
|
err_msg = "connect failed due to unsupported channel.";
|
||||||
" unsupported channel.";
|
|
||||||
iface = WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED;
|
iface = WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
err_msg = "connect failed due to"
|
err_msg = "connect failed due to unspecified error.";
|
||||||
" unspecified error.";
|
|
||||||
iface = WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR;
|
iface = WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO::
|
* TODO:
|
||||||
* Do we need specialized errors corresponding to above
|
* Do we need specialized errors corresponding to above
|
||||||
* error conditions as against just returning a different
|
* error conditions as against just returning a different
|
||||||
* error message?
|
* error message?
|
||||||
|
Loading…
Reference in New Issue
Block a user