mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
Changed fprintf(stdout,...) to printf(...) for more readable code because its basically the same
This commit is contained in:
parent
683ff88015
commit
7b87213f16
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue