aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorSpizzyCoder <spizzycoder@protonmail.com>2021-01-16 19:49:44 +0100
committerSimon Ser <contact@emersion.fr>2021-01-16 20:24:41 +0100
commit7cf25d3b987ff00a644bf5b6910a366f93029bbe (patch)
treeb203b9dd55481dc641e5e7a9c79211146d58e3a8 /sway
parent915ba01ff1388028a85156feb08e9296c356a696 (diff)
Changed fprintf(stdout,...) to printf(...) for more readable code
Diffstat (limited to 'sway')
-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) {
}
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");