aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2000-06-25 17:26:47 +0000
committerMark Murray <markm@FreeBSD.org>2000-06-25 17:26:47 +0000
commit493c240c48c88345561d75124afa52365dccf0d0 (patch)
tree87dfedb491dc29c92a54e755546ffef2fbd3bdec /sys
parentf307c8a7ed953f9d4ff1c3453b6998f0e80efe59 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/mem.c5
-rw-r--r--sys/i386/i386/mem.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c
index 52e964c01714c..a9538db71e399 100644
--- a/sys/amd64/amd64/mem.c
+++ b/sys/amd64/amd64/mem.c
@@ -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;
}
/*
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c
index 52e964c01714c..a9538db71e399 100644
--- a/sys/i386/i386/mem.c
+++ b/sys/i386/i386/mem.c
@@ -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;
}
/*