mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Fix build warnings
This commit is contained in:
parent
d95447fdd9
commit
5ae359279b
2 changed files with 4 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
}
|
||||
|
||||
uint32_t type;
|
||||
uint32_t type = IPC_COMMAND;
|
||||
|
||||
if (strcasecmp(cmdtype, "command") == 0) {
|
||||
type = IPC_COMMAND;
|
||||
|
|
@ -149,6 +149,8 @@ int main(int argc, char **argv) {
|
|||
type = IPC_GET_BAR_CONFIG;
|
||||
} else if (strcasecmp(cmdtype, "get_version") == 0) {
|
||||
type = IPC_GET_VERSION;
|
||||
} else {
|
||||
sway_abort("Unknown message type %s", cmdtype);
|
||||
}
|
||||
free(cmdtype);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue