diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-07-06 18:47:34 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-07-06 18:47:34 +0000 |
commit | 859fa3838ea89e9688266b62660a71b6dd4eb6be (patch) | |
tree | 363610a9acf852a0db671b8d0c08d0517bb291a7 /ufs | |
parent | 7cd676f2545019e826b669840a942791b4b38625 (diff) |
Formerly dir.c.~20~
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -312,7 +312,7 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx, char *name, needed = DIRSIZ (namelen); } - for (currentoff = blockaddr, prevoff = blockaddr; + for (currentoff = blockaddr, prevoff = 0; currentoff < blockaddr + DIRBLKSIZ; prevoff = currentoff, currentoff += entry->d_reclen) { @@ -575,7 +575,7 @@ diskfs_dirremove(struct node *dp, ds->entry->d_ino = 0; else { - assert ((vm_address_t )ds->entry - (vm_address_t)ds->preventry + assert ((vm_address_t) ds->entry - (vm_address_t) ds->preventry == ds->preventry->d_reclen); ds->preventry->d_reclen += ds->entry->d_reclen; } |