scroll

scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log | Files | Refs | README

commit 5f5cc69f25ef12b45d24311d06b7e9da371f3a8c
parent d40d23e29abf05092af051831c400a220c41ffb7
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:
Mscroll.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) {