Changed fprintf(stdout,...) to printf(...) for more readable code

This commit is contained in:
SpizzyCoder 2021-01-16 19:49:44 +01:00 committed by Simon Ser
parent 915ba01ff1
commit 7cf25d3b98
4 changed files with 6 additions and 6 deletions

View file

@ -281,7 +281,7 @@ int main(int argc, char **argv) {
}
switch (c) {
case 'h': // help
fprintf(stdout, "%s", usage);
printf("%s", usage);
exit(EXIT_SUCCESS);
break;
case 'c': // config
@ -301,7 +301,7 @@ int main(int argc, char **argv) {
allow_unsupported_gpu = 1;
break;
case 'v': // version
fprintf(stdout, "sway version " SWAY_VERSION "\n");
printf("sway version " SWAY_VERSION "\n");
exit(EXIT_SUCCESS);
break;
case 'V': // verbose
@ -309,7 +309,7 @@ int main(int argc, char **argv) {
break;
case 'p': ; // --get-socketpath
if (getenv("SWAYSOCK")) {
fprintf(stdout, "%s\n", getenv("SWAYSOCK"));
printf("%s\n", getenv("SWAYSOCK"));
exit(EXIT_SUCCESS);
} else {
fprintf(stderr, "sway socket not detected.\n");