]> err.no Git - util-linux/commitdiff
mkswap: gcc happy: unsigned long usage
authorKarel Zak <kzak@redhat.com>
Wed, 7 Feb 2007 09:10:22 +0000 (10:10 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 7 Feb 2007 09:10:22 +0000 (10:10 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkswap.c

index cbf898c1339380b038ef6ee04e814ab7c1b8abf2..d53f07ef6db2342f55b34e3259ff3cb7062473d4 100644 (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;
 }