From 3936d7b3799824a8098de616e35e60a1db64f0a7 Mon Sep 17 00:00:00 2001
From: Julien Grall <julien.grall@linaro.org>
Date: Tue, 14 Jan 2014 13:52:12 +0000
Subject: [PATCH 19/48] xen/gnttab: Use the right type for the frames

---
 sys/xen/gnttab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/xen/gnttab.c b/sys/xen/gnttab.c
index 9ab3145..9326d0c 100644
--- a/sys/xen/gnttab.c
+++ b/sys/xen/gnttab.c
@@ -516,12 +516,12 @@ static int
 gnttab_map(unsigned int start_idx, unsigned int end_idx)
 {
 	struct gnttab_setup_table setup;
-	u_long *frames;
+	xen_pfn_t *frames;
 
 	unsigned int nr_gframes = end_idx + 1;
 	int i, rc;
 
-	frames = malloc(nr_gframes * sizeof(unsigned long), M_DEVBUF, M_NOWAIT);
+	frames = malloc(nr_gframes * sizeof(*frames), M_DEVBUF, M_NOWAIT);
 	if (!frames)
 		return (ENOMEM);
 
-- 
2.1.0

