All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 04/10] reiserfsprogs: fix unsigned char with strlen/strcmp/strncpy warnings
@ 2012-10-11 17:19 Jeff Mahoney
  0 siblings, 0 replies; only message in thread
From: Jeff Mahoney @ 2012-10-11 17:19 UTC (permalink / raw)
  To: reiserfs-devel

This patch fixes a bunch of the following warnings:
warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign]
warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
 include/reiserfs_fs.h   |    2 +-
 mkreiserfs/mkreiserfs.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/reiserfs_fs.h b/include/reiserfs_fs.h
index 2d0442d..bcee57b 100644
--- a/include/reiserfs_fs.h
+++ b/include/reiserfs_fs.h
@@ -203,7 +203,7 @@ struct reiserfs_super_block
 /* 76 */     __u32 sb_inode_generation; 
 /* 80 */     __u32 s_flags;                /* Right now used only by inode-attributes, if enabled */
 /* 84 */    unsigned char s_uuid[16];      /* filesystem unique identifier */
-/*100 */    unsigned char s_label[16];     /* filesystem volume label */
+/*100 */    char s_label[16];              /* filesystem volume label */
 /*116 */    __u16 s_mnt_count;
 /*118 */    __u16 s_max_mnt_count;
 /*120 */    __u32 s_lastcheck;
diff --git a/mkreiserfs/mkreiserfs.c b/mkreiserfs/mkreiserfs.c
index 7ac0304..b0cd9b6 100644
--- a/mkreiserfs/mkreiserfs.c
+++ b/mkreiserfs/mkreiserfs.c
@@ -95,7 +95,7 @@ int Hash = DEFAULT_HASH;
 int Offset = 0;
 char * Format;
 unsigned char UUID[16];
-unsigned char * LABEL = NULL;
+char * LABEL = NULL;
 char * badblocks_file;
 
 enum mkfs_mode {
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-11 17:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-11 17:19 [PATCH 04/10] reiserfsprogs: fix unsigned char with strlen/strcmp/strncpy warnings Jeff Mahoney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.