From 7b87213f16be028e041e75b4ea446fd691c16cd3 Mon Sep 17 00:00:00 2001 From: SpizzyCoder Date: Fri, 15 Jan 2021 17:30:40 +0100 Subject: [PATCH] Changed fprintf(stdout,...) to printf(...) for more readable code because its basically the same --- sway/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sway/main.c b/sway/main.c index 9b5f505f5..c7548c92c 100644 --- a/sway/main.c +++ b/sway/main.c @@ -283,7 +283,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 @@ -303,7 +303,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 @@ -311,7 +311,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");