Introduction
Introduction Statistics Contact Development Disclaimer Help
make poll call more readable by replacing constant with LENGTH makro - scroll -…
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit 5f5cc69f25ef12b45d24311d06b7e9da371f3a8c
parent d40d23e29abf05092af051831c400a220c41ffb7
Author: Jan Klemkow <[email protected]>
Date: Tue, 14 Apr 2020 21:36:18 +0200
make poll call more readable by replacing constant with LENGTH makro
Diffstat:
M scroll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/scroll.c b/scroll.c
@@ -466,7 +466,7 @@ main(int argc, char *argv[])
for (;;) {
char input[BUFSIZ];
- if (poll(pfd, 2, -1) == -1 && errno != EINTR)
+ if (poll(pfd, LENGTH(pfd), -1) == -1 && errno != EINTR)
die("poll:");
if (doredraw) {
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.