summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-02-20 22:25:54 +0000
committerpeter <peter@FreeBSD.org>2002-02-20 22:25:54 +0000
commit279912070165445cb8fb47004734a6fbe941c387 (patch)
treeba91d130a97d2cb401a5d21ab59036c9eb61855a /sys
parent1906d1360c5ab22e4d5655cfb17697a675c021b5 (diff)
downloadFreeBSD-src-279912070165445cb8fb47004734a6fbe941c387.zip
FreeBSD-src-279912070165445cb8fb47004734a6fbe941c387.tar.gz
Pass me the pointy hat please. Be sure to return a value in a non-void
function. I've been running with this buried in the mountains of compiler output for about a month on my desktop.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/pmap.c2
-rw-r--r--sys/i386/i386/pmap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 95e5bc2..f12cb0b 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -665,7 +665,7 @@ pmap_extract(pmap, va)
vm_offset_t pdirindex;
if (pmap == 0)
- return;
+ return 0;
pdirindex = va >> PDRSHIFT;
rtval = pmap->pm_pdir[pdirindex];
if (rtval != 0) {
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 95e5bc2..f12cb0b 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -665,7 +665,7 @@ pmap_extract(pmap, va)
vm_offset_t pdirindex;
if (pmap == 0)
- return;
+ return 0;
pdirindex = va >> PDRSHIFT;
rtval = pmap->pm_pdir[pdirindex];
if (rtval != 0) {
OpenPOWER on IntegriCloud