make poll call more readable by replacing constant with LENGTH makro - scroll - scrollbackbuffer program for st
HTML git clone git://git.suckless.org/scroll
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 5f5cc69f25ef12b45d24311d06b7e9da371f3a8c
DIR parent d40d23e29abf05092af051831c400a220c41ffb7
HTML Author: Jan Klemkow <j.klemkow@wemelug.de>
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(-)
---
DIR 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) {