mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 23:41:27 +00:00
Changed fprintf(stdout,...) to printf(...) for more readable code
This commit is contained in:
parent
915ba01ff1
commit
7cf25d3b98
|
@ -281,7 +281,7 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'h': // help
|
case 'h': // help
|
||||||
fprintf(stdout, "%s", usage);
|
printf("%s", usage);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
case 'c': // config
|
case 'c': // config
|
||||||
|
@ -301,7 +301,7 @@ int main(int argc, char **argv) {
|
||||||
allow_unsupported_gpu = 1;
|
allow_unsupported_gpu = 1;
|
||||||
break;
|
break;
|
||||||
case 'v': // version
|
case 'v': // version
|
||||||
fprintf(stdout, "sway version " SWAY_VERSION "\n");
|
printf("sway version " SWAY_VERSION "\n");
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
case 'V': // verbose
|
case 'V': // verbose
|
||||||
|
@ -309,7 +309,7 @@ int main(int argc, char **argv) {
|
||||||
break;
|
break;
|
||||||
case 'p': ; // --get-socketpath
|
case 'p': ; // --get-socketpath
|
||||||
if (getenv("SWAYSOCK")) {
|
if (getenv("SWAYSOCK")) {
|
||||||
fprintf(stdout, "%s\n", getenv("SWAYSOCK"));
|
printf("%s\n", getenv("SWAYSOCK"));
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "sway socket not detected.\n");
|
fprintf(stderr, "sway socket not detected.\n");
|
||||||
|
|
|
@ -55,7 +55,7 @@ int main(int argc, char **argv) {
|
||||||
swaybar.id = strdup(optarg);
|
swaybar.id = strdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
fprintf(stdout, "swaybar version " SWAY_VERSION "\n");
|
printf("swaybar version " SWAY_VERSION "\n");
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
case 'd': // Debug
|
case 'd': // Debug
|
||||||
|
|
|
@ -396,7 +396,7 @@ int main(int argc, char **argv) {
|
||||||
cmdtype = strdup(optarg);
|
cmdtype = strdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
fprintf(stdout, "swaymsg version " SWAY_VERSION "\n");
|
printf("swaymsg version " SWAY_VERSION "\n");
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -234,7 +234,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'v': // Version
|
case 'v': // Version
|
||||||
fprintf(stdout, "swaynag version " SWAY_VERSION "\n");
|
printf("swaynag version " SWAY_VERSION "\n");
|
||||||
return -1;
|
return -1;
|
||||||
case TO_COLOR_BACKGROUND: // Background color
|
case TO_COLOR_BACKGROUND: // Background color
|
||||||
if (type && !parse_color(optarg, &type->background)) {
|
if (type && !parse_color(optarg, &type->background)) {
|
||||||
|
|
Loading…
Reference in a new issue