wrap long lines
This commit is contained in:
parent
db8fb62e4d
commit
0cfc7290e8
18 changed files with 181 additions and 154 deletions
2
ls.c
2
ls.c
|
|
@ -58,7 +58,7 @@ main(int argc, char *argv[])
|
|||
case T_DIR:
|
||||
sz = st.st_size;
|
||||
for(off = 0; off < sz; off += sizeof(struct dirent)) {
|
||||
if(read(fd, &dirent, sizeof(struct dirent)) != sizeof(struct dirent)) {
|
||||
if(read(fd, &dirent, sizeof dirent) != sizeof dirent) {
|
||||
printf(1, "ls: read error\n");
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue