getdents.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-09-05 16:54:19 +02:00
parent 48d0510307
commit 3b27ce1573
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ main(int argc, char *argv[])
if (fd == \-1)
handle_error("open");
for ( ; ; ) {
for (;;) {
nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);
if (nread == \-1)
handle_error("getdents");