aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/main.c b/sway/main.c
index 62a88835..0c219fb3 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -281,7 +281,7 @@ int main(int argc, char **argv) {
281 } 281 }
282 switch (c) { 282 switch (c) {
283 case 'h': // help 283 case 'h': // help
284 fprintf(stdout, "%s", usage); 284 printf("%s", usage);
285 exit(EXIT_SUCCESS); 285 exit(EXIT_SUCCESS);
286 break; 286 break;
287 case 'c': // config 287 case 'c': // config
@@ -301,7 +301,7 @@ int main(int argc, char **argv) {
301 allow_unsupported_gpu = 1; 301 allow_unsupported_gpu = 1;
302 break; 302 break;
303 case 'v': // version 303 case 'v': // version
304 fprintf(stdout, "sway version " SWAY_VERSION "\n"); 304 printf("sway version " SWAY_VERSION "\n");
305 exit(EXIT_SUCCESS); 305 exit(EXIT_SUCCESS);
306 break; 306 break;
307 case 'V': // verbose 307 case 'V': // verbose
@@ -309,7 +309,7 @@ int main(int argc, char **argv) {
309 break; 309 break;
310 case 'p': ; // --get-socketpath 310 case 'p': ; // --get-socketpath
311 if (getenv("SWAYSOCK")) { 311 if (getenv("SWAYSOCK")) {
312 fprintf(stdout, "%s\n", getenv("SWAYSOCK")); 312 printf("%s\n", getenv("SWAYSOCK"));
313 exit(EXIT_SUCCESS); 313 exit(EXIT_SUCCESS);
314 } else { 314 } else {
315 fprintf(stderr, "sway socket not detected.\n"); 315 fprintf(stderr, "sway socket not detected.\n");