Fix an uninitialised variable and a function return value.

Reported by:	dillon
This commit is contained in:
Mark Murray 2000-06-25 17:26:47 +00:00
parent f307c8a7ed
commit 493c240c48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62085
2 changed files with 8 additions and 2 deletions

View File

@ -134,7 +134,7 @@ static int
mmrw(dev_t dev, struct uio *uio, int flags)
{
int o;
u_int c, v;
u_int c = 0, v;
struct iovec *iov;
int error = 0;
vm_offset_t addr, eaddr;
@ -218,6 +218,9 @@ memmmap(dev_t dev, vm_offset_t offset, int prot)
case 1:
return i386_btop(vtophys(offset));
}
default:
return -1;
}
/*

View File

@ -134,7 +134,7 @@ static int
mmrw(dev_t dev, struct uio *uio, int flags)
{
int o;
u_int c, v;
u_int c = 0, v;
struct iovec *iov;
int error = 0;
vm_offset_t addr, eaddr;
@ -218,6 +218,9 @@ memmmap(dev_t dev, vm_offset_t offset, int prot)
case 1:
return i386_btop(vtophys(offset));
}
default:
return -1;
}
/*