summaryrefslogtreecommitdiffstats
path: root/sys/vm/default_pager.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-08-25 22:15:31 +0000
committerbde <bde@FreeBSD.org>1997-08-25 22:15:31 +0000
commitc978fb36523322ed7db0f843aca2c0a73f8a192e (patch)
treeffbd342b3bd99dab9d92313058d7a62c7d3bd829 /sys/vm/default_pager.c
parentdf4046c530c54c154e7ddba70448b8eb442789a7 (diff)
downloadFreeBSD-src-c978fb36523322ed7db0f843aca2c0a73f8a192e.zip
FreeBSD-src-c978fb36523322ed7db0f843aca2c0a73f8a192e.tar.gz
Fixed type mismatches for functions with args of type vm_prot_t and/or
vm_inherit_t. These types are smaller than ints, so the prototypes should have used the promoted type (int) to match the old-style function definitions. They use just vm_prot_t and/or vm_inherit_t. This depends on gcc features to work. I fixed the definitions since this is easiest. The correct fix may be to change the small types to u_int, to optimize for time instead of space.
Diffstat (limited to 'sys/vm/default_pager.c')
-rw-r--r--sys/vm/default_pager.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/vm/default_pager.c b/sys/vm/default_pager.c
index 0188503..a1bc4be 100644
--- a/sys/vm/default_pager.c
+++ b/sys/vm/default_pager.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: default_pager.c,v 1.11 1997/02/22 09:47:58 peter Exp $
*/
#include <sys/param.h>
@@ -72,11 +72,8 @@ struct pagerops defaultpagerops = {
* no_pager_alloc just returns an initialized object.
*/
static vm_object_t
-default_pager_alloc(handle, size, prot, offset)
- void *handle;
- register vm_size_t size;
- vm_prot_t prot;
- vm_ooffset_t offset;
+default_pager_alloc(void *handle, vm_size_t size, vm_prot_t prot,
+ vm_ooffset_t offset)
{
if (handle != NULL)
panic("default_pager_alloc: handle specified");
OpenPOWER on IntegriCloud