summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
authorKarel Zak2007-02-07 10:10:22 +0100
committerKarel Zak2007-02-07 10:10:22 +0100
commit6b9a290adf1680ff7a4a74bc78fe6ac9931667cc (patch)
tree79c9cd380955fe44354457da814253104d2843b2 /disk-utils
parentClean up pagesize/PAGE_SIZE usage. (diff)
downloadkernel-qcow2-util-linux-6b9a290adf1680ff7a4a74bc78fe6ac9931667cc.tar.gz
kernel-qcow2-util-linux-6b9a290adf1680ff7a4a74bc78fe6ac9931667cc.tar.xz
kernel-qcow2-util-linux-6b9a290adf1680ff7a4a74bc78fe6ac9931667cc.zip
mkswap: gcc happy: unsigned long usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/mkswap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c
index cbf898c13..d53f07ef6 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;
}