mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 08:11:47 -05:00
fix: add missing braces to switch case (#90)
This resolves a build error on macOS/clang 17, due to declaring a variable immediately after a case label in the switch, we need to wrap the case in braces.
This commit is contained in:
parent
861a6560fe
commit
be1b46eb9e
1 changed files with 2 additions and 0 deletions
|
@ -298,6 +298,7 @@ void handle_generic_packet(int skt, GenericPacket *request)
|
|||
case SERVICE_ID_SYSTEM:
|
||||
switch (gen_cmd->method_id) {
|
||||
case METHOD_ID_SYSTEM_GET_INFO:
|
||||
{
|
||||
SystemInfo *info = (SystemInfo *)&response.payload[0];
|
||||
info->board_ver = htonl(BOARD_VERSION_MASS);
|
||||
info->chip_ver = htonl(CHIP_VERSION_ES3);
|
||||
|
@ -310,6 +311,7 @@ void handle_generic_packet(int skt, GenericPacket *request)
|
|||
response.generic_cmd_header.error_code = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SERVICE_ID_PERIPHERAL:
|
||||
switch (gen_cmd->method_id) {
|
||||
|
|
Loading…
Reference in a new issue