mkswap: gcc happy: unsigned long usage

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2007-02-07 10:10:22 +01:00
parent 7ac3b5b8e3
commit 6b9a290adf
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}