mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
Fix warning from unused daemon return value
This commit is contained in:
parent
6abbe04e75
commit
a11277c88f
1 changed files with 4 additions and 1 deletions
|
@ -425,7 +425,10 @@ int main(int argc, char **argv) {
|
||||||
show_indicator = false;
|
show_indicator = false;
|
||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
daemon(0, 0);
|
if (daemon(0, 0) != 0) {
|
||||||
|
sway_log(L_ERROR, "daemon call failed");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "%s", usage);
|
fprintf(stderr, "%s", usage);
|
||||||
|
|
Loading…
Reference in a new issue