Fix build warnings

master
Drew DeVault 9 years ago
parent d95447fdd9
commit 5ae359279b

@ -62,7 +62,7 @@ int main(int argc, const char **argv) {
double height = cairo_image_surface_get_height(image); double height = cairo_image_surface_get_height(image);
const char *scaling_mode_str = argv[3]; const char *scaling_mode_str = argv[3];
enum scaling_mode scaling_mode; enum scaling_mode scaling_mode = SCALING_MODE_STRETCH;
if (strcmp(scaling_mode_str, "stretch") == 0) { if (strcmp(scaling_mode_str, "stretch") == 0) {
scaling_mode = SCALING_MODE_STRETCH; scaling_mode = SCALING_MODE_STRETCH;
} else if (strcmp(scaling_mode_str, "fill") == 0) { } else if (strcmp(scaling_mode_str, "fill") == 0) {

@ -133,7 +133,7 @@ int main(int argc, char **argv) {
} }
} }
uint32_t type; uint32_t type = IPC_COMMAND;
if (strcasecmp(cmdtype, "command") == 0) { if (strcasecmp(cmdtype, "command") == 0) {
type = IPC_COMMAND; type = IPC_COMMAND;
@ -149,6 +149,8 @@ int main(int argc, char **argv) {
type = IPC_GET_BAR_CONFIG; type = IPC_GET_BAR_CONFIG;
} else if (strcasecmp(cmdtype, "get_version") == 0) { } else if (strcasecmp(cmdtype, "get_version") == 0) {
type = IPC_GET_VERSION; type = IPC_GET_VERSION;
} else {
sway_abort("Unknown message type %s", cmdtype);
} }
free(cmdtype); free(cmdtype);

Loading…
Cancel
Save