summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-22 11:42:34 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-12-22 11:42:34 (EST)
commitaa40313ec2f9f3042f7099e9ff05fe24bccb7164 (patch)
tree700a7eb66391965fc7af4afb57ed565382a689f6
parentec0b97bbb605897087f1307245bf3531e64c4fbd (diff)
downloadlibreboot-aa40313ec2f9f3042f7099e9ff05fe24bccb7164.zip
libreboot-aa40313ec2f9f3042f7099e9ff05fe24bccb7164.tar.gz
libreboot-aa40313ec2f9f3042f7099e9ff05fe24bccb7164.tar.bz2
ich9deblob: use unsigned char as cast when checking endianness
-rw-r--r--resources/utilities/ich9deblob/ich9deblob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/utilities/ich9deblob/ich9deblob.c b/resources/utilities/ich9deblob/ich9deblob.c
index d65fa31..22c5787 100644
--- a/resources/utilities/ich9deblob/ich9deblob.c
+++ b/resources/utilities/ich9deblob/ich9deblob.c
@@ -287,7 +287,7 @@ int structSizesIncorrect(struct DESCRIPTORREGIONRECORD descriptorDummy, struct G
int systemIsBigEndian() {
// endianness check. big endian forced to fail
unsigned short steak = 0xBEEF;
- unsigned char *grill = (char*)&steak;
+ unsigned char *grill = (unsigned char*)&steak;
if (*grill==0xBE) {
printf("\nunsigned short 0xBEEF: first byte should be EF, but it's BE. Your system is big endian, and unsupported (only little endian is tested)\n");
return 1;