This patch remove 3 compiling warning of current e2fsprogs git. Best regards. Coly diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c index b50ff7c..ce0301f 100644 --- a/debugfs/set_fields.c +++ b/debugfs/set_fields.c @@ -16,6 +16,7 @@ #include <stdlib.h> #include <ctype.h> #include <string.h> +#include <strings.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index 69a43b0..c8fffa1 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -585,8 +585,8 @@ static int probe_luks(struct blkid_probe *probe, unsigned char uuid[40]; /* 168 is the offset to the 40 character uuid: * http://luks.endorphin.org/LUKS-on-disk-format.pdf */ - strncpy(uuid, buf+168, 40); - blkid_set_tag(probe->dev, "UUID", uuid, sizeof(uuid)); + strncpy((char *)uuid, (const char *)(buf+168), 40); + blkid_set_tag(probe->dev, "UUID", (const char *)uuid, sizeof(uuid)); return 0; } diff --git a/misc/badblocks.c b/misc/badblocks.c index 88c5a74..29c5a5c 100644 --- a/misc/badblocks.c +++ b/misc/badblocks.c @@ -1012,7 +1012,7 @@ int main (int argc, char ** argv) } } else from_count = 0; if (from_count >= last_block) { - com_err (program_name, 0, _("invalid starting block (%d): must be less than %lu"), + com_err (program_name, 0, _("invalid starting block (%lu): must be less than %lu"), (unsigned long) from_count, (unsigned long) last_block); exit (1); } - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html