]> git.lizzy.rs Git - bspwm.git/commitdiff
Fix the style consistency
authorBastien Dejean <nihilhill@gmail.com>
Sat, 22 May 2021 09:36:33 +0000 (11:36 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Sat, 22 May 2021 09:36:33 +0000 (11:36 +0200)
src/subscribe.c

index 90a4bd5d6b0e18135881a602ab96163cca411ffc..e91ffec995a11ff0118afe7b9a2d16a21a44f6e1 100644 (file)
@@ -174,7 +174,7 @@ void prune_dead_subscribers(void)
                // stream is not writable anymore (i.e. it has been closed because the
                // process associated to this subscriber no longer exists) then write()
                // will return -1.
-               if (write(fileno(sb->stream), 0, 0) == -1) {
+               if (write(fileno(sb->stream), NULL, 0) == -1) {
                        remove_subscriber(sb);
                }
                sb = next;