diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-11-27 09:42:24 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-11-27 09:42:24 -0500 |
commit | 5ae359279ba2b72acc93c907c31850e16d10b358 (patch) | |
tree | 9139dd62e465d920d19cf336b309d8099070cb4d /swaymsg | |
parent | Fix mistake in CONTRIBUTING.md (diff) | |
download | sway-5ae359279ba2b72acc93c907c31850e16d10b358.tar.gz sway-5ae359279ba2b72acc93c907c31850e16d10b358.tar.zst sway-5ae359279ba2b72acc93c907c31850e16d10b358.zip |
Fix build warnings
Diffstat (limited to 'swaymsg')
-rw-r--r-- | swaymsg/main.c | 4 |
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) { | |||
133 | } | 133 | } |
134 | } | 134 | } |
135 | 135 | ||
136 | uint32_t type; | 136 | uint32_t type = IPC_COMMAND; |
137 | 137 | ||
138 | if (strcasecmp(cmdtype, "command") == 0) { | 138 | if (strcasecmp(cmdtype, "command") == 0) { |
139 | type = IPC_COMMAND; | 139 | type = IPC_COMMAND; |
@@ -149,6 +149,8 @@ int main(int argc, char **argv) { | |||
149 | type = IPC_GET_BAR_CONFIG; | 149 | type = IPC_GET_BAR_CONFIG; |
150 | } else if (strcasecmp(cmdtype, "get_version") == 0) { | 150 | } else if (strcasecmp(cmdtype, "get_version") == 0) { |
151 | type = IPC_GET_VERSION; | 151 | type = IPC_GET_VERSION; |
152 | } else { | ||
153 | sway_abort("Unknown message type %s", cmdtype); | ||
152 | } | 154 | } |
153 | free(cmdtype); | 155 | free(cmdtype); |
154 | 156 | ||