summaryrefslogtreecommitdiff
path: root/swaymsg
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2015-11-27 09:42:24 -0500
committerFurkan Sahin <furkan-dev@proton.me>2015-11-27 09:42:24 -0500
commit3f1cb29c4f48709fb5459ebfafa7cab5e3c47bcb (patch)
tree9139dd62e465d920d19cf336b309d8099070cb4d /swaymsg
parentf7a63060e070edb373049af6aade0bef5cb649fe (diff)
Fix build warnings
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index 9c799b54..ea8e0a55 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -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);