From 6b9a290adf1680ff7a4a74bc78fe6ac9931667cc Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 7 Feb 2007 10:10:22 +0100 Subject: [PATCH] mkswap: gcc happy: unsigned long usage Signed-off-by: Karel Zak --- disk-utils/mkswap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c index cbf898c1..d53f07ef 100644 --- a/disk-utils/mkswap.c +++ b/disk-utils/mkswap.c @@ -151,7 +151,7 @@ is_sparc64(void) { */ static int user_pagesize; static int pagesize; -static long *signature_page; +static unsigned long *signature_page; struct swap_header_v1 *p; static void @@ -174,7 +174,7 @@ init_signature_page(void) { "instead of the system value %d\n"), pagesize, kernel_pagesize); - signature_page = (long *) malloc(pagesize); + signature_page = (unsigned long *) malloc(pagesize); memset(signature_page, 0, pagesize); p = (struct swap_header_v1 *) signature_page; } -- 2.39.5