aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkswap.c
diff options
context:
space:
mode:
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 1fc648f3a..e203f0db6 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -70,7 +70,7 @@ static int version = -1;
70 */ 70 */
71 71
72static int pagesize; 72static int pagesize;
73static int *signature_page; 73static unsigned int *signature_page;
74 74
75static struct swap_header_v1 { 75static struct swap_header_v1 {
76 char bootbits[1024]; /* Space for disklabel etc. */ 76 char bootbits[1024]; /* Space for disklabel etc. */
@@ -89,7 +89,7 @@ static inline void init_signature_page(void)
89 if (pagesize != PAGE_SIZE) 89 if (pagesize != PAGE_SIZE)
90 bb_error_msg("Assuming pages of size %d", pagesize); 90 bb_error_msg("Assuming pages of size %d", pagesize);
91#endif 91#endif
92 signature_page = (int *) xmalloc(pagesize); 92 signature_page = (unsigned int *) xmalloc(pagesize);
93 memset(signature_page, 0, pagesize); 93 memset(signature_page, 0, pagesize);
94 p = (struct swap_header_v1 *) signature_page; 94 p = (struct swap_header_v1 *) signature_page;
95} 95}