mkswap: gcc happy: unsigned long usage
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
7ac3b5b8e3
commit
6b9a290adf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue