aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/main.c6
-rw-r--r--swaybar/main.c2
-rw-r--r--swaymsg/main.c2
-rw-r--r--swaynag/config.c2
4 files changed, 6 insertions, 6 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");
diff --git a/swaybar/main.c b/swaybar/main.c
index 108b16e9..5c36d66b 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -55,7 +55,7 @@ int main(int argc, char **argv) {
swaybar.id = strdup(optarg);
break;
case 'v':
- fprintf(stdout, "swaybar version " SWAY_VERSION "\n");
+ printf("swaybar version " SWAY_VERSION "\n");
exit(EXIT_SUCCESS);
break;
case 'd': // Debug
diff --git a/swaymsg/main.c b/swaymsg/main.c
index eb13f0d8..60536e48 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -396,7 +396,7 @@ int main(int argc, char **argv) {
cmdtype = strdup(optarg);
break;
case 'v':
- fprintf(stdout, "swaymsg version " SWAY_VERSION "\n");
+ printf("swaymsg version " SWAY_VERSION "\n");
exit(EXIT_SUCCESS);
break;
default:
diff --git a/swaynag/config.c b/swaynag/config.c
index a57597ef..ca7f4eb2 100644
--- a/swaynag/config.c
+++ b/swaynag/config.c
@@ -234,7 +234,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
}
break;
case 'v': // Version
- fprintf(stdout, "swaynag version " SWAY_VERSION "\n");
+ printf("swaynag version " SWAY_VERSION "\n");
return -1;
case TO_COLOR_BACKGROUND: // Background color
if (type && !parse_color(optarg, &type->background)) {