From 98f1484cd92f353ec8a7bb8a71ea5d2a417b9d95 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 20 Feb 2002 22:25:54 +0000 Subject: [PATCH] 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. --- sys/amd64/amd64/pmap.c | 2 +- sys/i386/i386/pmap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 95e5bc204a1..f12cb0b86b7 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 95e5bc204a1..f12cb0b86b7 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) {