summaryrefslogtreecommitdiff
path: root/usr/src/common/fs/ufsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/fs/ufsops.c')
-rw-r--r--usr/src/common/fs/ufsops.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/common/fs/ufsops.c b/usr/src/common/fs/ufsops.c
index 52e716f1de..a467f41202 100644
--- a/usr/src/common/fs/ufsops.c
+++ b/usr/src/common/fs/ufsops.c
@@ -69,15 +69,15 @@ static fileid_t *head;
devid_t *ufs_devp;
struct dirinfo {
- int loc;
+ int loc;
fileid_t *fi;
};
static int bufs_close(int);
static void bufs_closeall(int);
-static ino_t find(fileid_t *filep, char *path);
+static ino_t find(fileid_t *filep, char *path);
static ino_t dlook(fileid_t *filep, char *path);
-static daddr32_t sbmap(fileid_t *filep, daddr32_t bn);
+static daddr32_t sbmap(fileid_t *filep, daddr32_t bn);
static struct direct *readdir(struct dirinfo *dstuff);
static void set_cache(int, void *, uint_t);
static void *get_cache(int);
@@ -151,9 +151,10 @@ find(fileid_t *filep, char *path)
int len, r;
devid_t *devp;
+ inode = 0;
if (path == NULL || *path == '\0') {
printf("null path\n");
- return ((ino_t)0);
+ return (inode);
}
dprintf("openi: %s\n", path);