aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs')
-rw-r--r--e2fsprogs/blkid/probe.c8
-rw-r--r--e2fsprogs/ext2fs/ext2fs_inline.c2
-rw-r--r--e2fsprogs/mke2fs.c6
3 files changed, 10 insertions, 6 deletions
diff --git a/e2fsprogs/blkid/probe.c b/e2fsprogs/blkid/probe.c
index 2aaa50885..36f7177b8 100644
--- a/e2fsprogs/blkid/probe.c
+++ b/e2fsprogs/blkid/probe.c
@@ -340,7 +340,7 @@ static int probe_swap1(int fd,
340 /* arbitrary sanity check.. is there any garbage down there? */ 340 /* arbitrary sanity check.. is there any garbage down there? */
341 if (sws->sws_pad[32] == 0 && sws->sws_pad[33] == 0) { 341 if (sws->sws_pad[32] == 0 && sws->sws_pad[33] == 0) {
342 if (sws->sws_volume[0]) 342 if (sws->sws_volume[0])
343 blkid_set_tag(dev, "LABEL", sws->sws_volume, 343 blkid_set_tag(dev, "LABEL", (const char*)sws->sws_volume,
344 sizeof(sws->sws_volume)); 344 sizeof(sws->sws_volume));
345 if (sws->sws_uuid[0]) 345 if (sws->sws_uuid[0])
346 set_uuid(dev, sws->sws_uuid); 346 set_uuid(dev, sws->sws_uuid);
@@ -415,8 +415,8 @@ static int probe_ocfs(int fd __BLKID_ATTR((unused)),
415 else if (major >= 9) 415 else if (major >= 9)
416 blkid_set_tag(dev,"SEC_TYPE","ntocfs",sizeof("ntocfs")); 416 blkid_set_tag(dev,"SEC_TYPE","ntocfs",sizeof("ntocfs"));
417 417
418 blkid_set_tag(dev, "LABEL", ovl.label, ocfslabellen(ovl)); 418 blkid_set_tag(dev, "LABEL", (const char*)ovl.label, ocfslabellen(ovl));
419 blkid_set_tag(dev, "MOUNT", ovh.mount, ocfsmountlen(ovh)); 419 blkid_set_tag(dev, "MOUNT", (const char*)ovh.mount, ocfsmountlen(ovh));
420 set_uuid(dev, ovl.vol_id); 420 set_uuid(dev, ovl.vol_id);
421 return 0; 421 return 0;
422} 422}
@@ -431,7 +431,7 @@ static int probe_ocfs2(int fd __BLKID_ATTR((unused)),
431 431
432 osb = (struct ocfs2_super_block *)buf; 432 osb = (struct ocfs2_super_block *)buf;
433 433
434 blkid_set_tag(dev, "LABEL", osb->s_label, sizeof(osb->s_label)); 434 blkid_set_tag(dev, "LABEL", (const char*)osb->s_label, sizeof(osb->s_label));
435 set_uuid(dev, osb->s_uuid); 435 set_uuid(dev, osb->s_uuid);
436 return 0; 436 return 0;
437} 437}
diff --git a/e2fsprogs/ext2fs/ext2fs_inline.c b/e2fsprogs/ext2fs/ext2fs_inline.c
index 2fa9a9ed2..73d393d20 100644
--- a/e2fsprogs/ext2fs/ext2fs_inline.c
+++ b/e2fsprogs/ext2fs/ext2fs_inline.c
@@ -178,7 +178,7 @@ __u32 ext2fs_swab32(__u32 val)
178 178
179int ext2fs_find_first_bit_set(void * addr, unsigned size) 179int ext2fs_find_first_bit_set(void * addr, unsigned size)
180{ 180{
181 char *cp = (unsigned char *) addr; 181 unsigned char *cp = (unsigned char *) addr;
182 int res = 0, d0; 182 int res = 0, d0;
183 183
184 if (!size) 184 if (!size)
diff --git a/e2fsprogs/mke2fs.c b/e2fsprogs/mke2fs.c
index 10563e2d9..09d42aacf 100644
--- a/e2fsprogs/mke2fs.c
+++ b/e2fsprogs/mke2fs.c
@@ -878,8 +878,12 @@ BLOCKSIZE_ERROR:
878 mke2fs_warning_msg(1, "fragments not supported. Ignoring -f option"); 878 mke2fs_warning_msg(1, "fragments not supported. Ignoring -f option");
879 break; 879 break;
880 case 'g': 880 case 'g':
881 if (safe_strtoi(optarg, &param.s_blocks_per_group)) { 881 {
882 int foo;
883 if (safe_strtoi(optarg, &foo)) {
882 bb_error_msg_and_die("Illegal number for blocks per group"); 884 bb_error_msg_and_die("Illegal number for blocks per group");
885 }
886 param.s_blocks_per_group = foo;
883 } 887 }
884 if ((param.s_blocks_per_group % 8) != 0) { 888 if ((param.s_blocks_per_group % 8) != 0) {
885 bb_error_msg_and_die("blocks per group must be multiple of 8"); 889 bb_error_msg_and_die("blocks per group must be multiple of 8");