Skip to contentSkip to conversation

reiserfsprogs: fix unsigned char with strlen/strcmp/strncpy warnings

PATCH New Jeff Mahoney 1 participant 1 message Oct 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 4/10 reiserfsprogs: fix unsigned char with strlen/strcmp/strncpy warnings

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]

---
 include/reiserfs_fs.h   |    2 +-
 mkreiserfs/mkreiserfs.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/reiserfs_fs.h +1 -1
index 2d0442d..bcee57b 100644
@@ -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;
mkreiserfs/mkreiserfs.c +1 -1
index 7ac0304..b0cd9b6 100644
@@ -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 {
Signature · 7 lines
1.7.10.4


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