summaryrefslogtreecommitdiff
path: root/util-linux/mkswap.c
diff options
context:
space:
mode:
authorEric Andersen2006-01-30 23:09:20 +0000
committerEric Andersen2006-01-30 23:09:20 +0000
commit3496fdc9a573a424e34141cbe04250cc8df15e32 (patch)
treea78bfa0e539dcdbb024ed1acb9fba333dfacc228 /util-linux/mkswap.c
parenta68ea1cb93c29125bc4f30ddd415fca02249e010 (diff)
downloadbusybox-3496fdc9a573a424e34141cbe04250cc8df15e32.zip
busybox-3496fdc9a573a424e34141cbe04250cc8df15e32.tar.gz
hopefully the last of the annoying signed/unsigned and mixed type errors
Diffstat (limited to 'util-linux/mkswap.c')
-rw-r--r--util-linux/mkswap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 1fc648f..e203f0d 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -70,7 +70,7 @@ static int version = -1;
*/
static int pagesize;
-static int *signature_page;
+static unsigned int *signature_page;
static struct swap_header_v1 {
char bootbits[1024]; /* Space for disklabel etc. */
@@ -89,7 +89,7 @@ static inline void init_signature_page(void)
if (pagesize != PAGE_SIZE)
bb_error_msg("Assuming pages of size %d", pagesize);
#endif
- signature_page = (int *) xmalloc(pagesize);
+ signature_page = (unsigned int *) xmalloc(pagesize);
memset(signature_page, 0, pagesize);
p = (struct swap_header_v1 *) signature_page;
}