summaryrefslogtreecommitdiff
path: root/ufs/dir.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-06 18:47:34 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-06 18:47:34 +0000
commit0188170d4e1ab74f3f0d1bb439de263beed1df2e (patch)
tree62fe159fca478b6d70b00761cdde671c5a388013 /ufs/dir.c
parente2d8fdfce10f7a48ce92d244064a02ab3fe023d0 (diff)
Formerly dir.c.~20~
Diffstat (limited to 'ufs/dir.c')
-rw-r--r--ufs/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index d088778e..62bf3302 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -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;
}