summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--swaybg/main.c2
-rw-r--r--swaymsg/main.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/swaybg/main.c b/swaybg/main.c
index 3b344079..ff16a54e 100644
--- a/swaybg/main.c
+++ b/swaybg/main.c
@@ -62,7 +62,7 @@ int main(int argc, const char **argv) {
62 double height = cairo_image_surface_get_height(image); 62 double height = cairo_image_surface_get_height(image);
63 63
64 const char *scaling_mode_str = argv[3]; 64 const char *scaling_mode_str = argv[3];
65 enum scaling_mode scaling_mode; 65 enum scaling_mode scaling_mode = SCALING_MODE_STRETCH;
66 if (strcmp(scaling_mode_str, "stretch") == 0) { 66 if (strcmp(scaling_mode_str, "stretch") == 0) {
67 scaling_mode = SCALING_MODE_STRETCH; 67 scaling_mode = SCALING_MODE_STRETCH;
68 } else if (strcmp(scaling_mode_str, "fill") == 0) { 68 } else if (strcmp(scaling_mode_str, "fill") == 0) {
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