The `off` argument to `dirlookup` is optional. It
was not being used in the `dirlookup` call in `create`,
so pass NULL instead and delete the unused local.
Signed-off-by: Dan Cross <cross@gajendra.net>
static struct inode*
create(char *path, short type, short major, short minor)
{
- uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
return 0;
ilock(dp);
- if((ip = dirlookup(dp, name, &off)) != 0){
+ if((ip = dirlookup(dp, name, 0)) != 0){
iunlockput(dp);
ilock(ip);
if(type == T_FILE && ip->type == T_FILE)