mirror of https://github.com/mkerrisk/man-pages
getdents.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
48d0510307
commit
3b27ce1573
|
@ -287,7 +287,7 @@ main(int argc, char *argv[])
|
||||||
if (fd == \-1)
|
if (fd == \-1)
|
||||||
handle_error("open");
|
handle_error("open");
|
||||||
|
|
||||||
for ( ; ; ) {
|
for (;;) {
|
||||||
nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);
|
nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);
|
||||||
if (nread == \-1)
|
if (nread == \-1)
|
||||||
handle_error("getdents");
|
handle_error("getdents");
|
||||||
|
|
Loading…
Reference in New Issue