Skip to contentSkip to conversation

intrep.c char -> unsigned char

PATCH New Felix Oxley 1 participant 1 message Oct 8, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intrep.c char -> unsigned char

Hi,
IANAKH but I believe you need the following patch.
As suggested on the Kernel Janitors To Do list, I have been searching for chars > 127.
I only found this one!

If the fix is correct please, ACK and push upstream.

regards,
Felix

jffs/intrep.c renamed from jffs/intrep.c.orig +1 -1
@@ -1969,7 +1969,7 @@ retry:
 		iovec_cnt++;
 
 		if (JFFS_GET_PAD_BYTES(raw_inode->nsize)) {
-			static char allff[3]={255,255,255};
+			static unsigned char allff[3]={255,255,255};
 			/* Add some extra padding if necessary */
 			node_iovec[iovec_cnt].iov_base = allff;
 			node_iovec[iovec_cnt].iov_len =
jffs/intrep.c renamed from jffs/intrep.c.orig +1 -1
@@ -1969,7 +1969,7 @@ retry:
 		iovec_cnt++;
 
 		if (JFFS_GET_PAD_BYTES(raw_inode->nsize)) {
-			static char allff[3]={255,255,255};
+			static unsigned char allff[3]={255,255,255};
 			/* Add some extra padding if necessary */
 			node_iovec[iovec_cnt].iov_base = allff;
 			node_iovec[iovec_cnt].iov_len =

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors