linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] removing e2fsprogs compiling warnings
@ 2007-08-01  7:18 Coly Li
  2007-08-03 22:32 ` Theodore Tso
  0 siblings, 1 reply; 6+ messages in thread
From: Coly Li @ 2007-08-01  7:18 UTC (permalink / raw)
  To: linux-ext4

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);
        }

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-05 13:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-01  7:18 [PATCH] removing e2fsprogs compiling warnings Coly Li
2007-08-03 22:32 ` Theodore Tso
2007-08-04  6:07   ` Coly Li
2007-08-04 14:56     ` Theodore Tso
2007-08-05 13:25       ` Coly Li
2007-08-04  6:55   ` Coly Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).