summaryrefslogtreecommitdiff
path: root/ufs/dir.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-08 08:41:59 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-08 08:41:59 +0000
commit637f6a0aa9cec92581381a8a19a66d2f9b66216b (patch)
tree760d93d564d1791d1b7dacc75ad4fd55193e8e24 /ufs/dir.c
parent558d5489edced5c7a208f66eafb47fbcca201ac0 (diff)
1999-09-08 Thomas Bushnell, BSG <tb@mit.edu>
* dir.c (diskfs_get_directs): Initialize `err' to shut gcc up. 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu> * dir.c (diskfs_lookup_hard): Pass additional parameter to diskfs_get_filemap. (diskfs_dirempty): Likewise. * sizes.c (diskfs_truncate): Likewise. (block_extended): Likewise. (diskfs_grow): Likewise. * pager.c (diskfs_get_filemap): Accept additional parameter.
Diffstat (limited to 'ufs/dir.c')
-rw-r--r--ufs/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index 304c8a44..aee08bb0 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -144,7 +144,7 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum lookup_type type,
ds->stat = LOOKING;
/* Map in the directory contents. */
- memobj = diskfs_get_filemap (dp, prot);
+ memobj = diskfs_get_filemap (dp, 0, prot);
if (memobj == MACH_PORT_NULL)
return errno;
@@ -730,7 +730,7 @@ diskfs_dirempty(struct node *dp,
memory_object_t memobj;
error_t err;
- memobj = diskfs_get_filemap (dp, VM_PROT_READ);
+ memobj = diskfs_get_filemap (dp, 0, VM_PROT_READ);
if (memobj == MACH_PORT_NULL)
/* XXX should reflect error properly */
@@ -839,7 +839,7 @@ diskfs_get_directs (struct node *dp,
char buf[DIRBLKSIZ];
char *bufp;
int bufvalid;
- error_t err;
+ error_t err = 0;
int i;
char *datap;
struct directory_entry *entryp;