summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-09-06 07:10:08 +0900
committerSimon Horman <horms@verge.net.au>2011-09-06 07:12:55 +0900
commit0ee3b4c136ccf7e9b66f2610a6d7f3ac4c135d14 (patch)
tree2c3d71930316b53094b742428fd4902e21d7c643 /include
parentfd3178774930cb55f9e9aa6553889e9d54b4500d (diff)
downloadkexec-tools-0ee3b4c136ccf7e9b66f2610a6d7f3ac4c135d14.tar.gz
Use unsigned char buffers in uImage loader
This avoids out of range comparisons (for values >= 128) and an unnecessary cast. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/kexec-uImage.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/kexec-uImage.h b/include/kexec-uImage.h
index e8a4b693..8c7707df 100644
--- a/include/kexec-uImage.h
+++ b/include/kexec-uImage.h
@@ -2,12 +2,12 @@
#define __KEXEC_UIMAGE_H__
struct Image_info {
- const char *buf;
+ const unsigned char *buf;
off_t len;
unsigned int base;
unsigned int ep;
};
-int uImage_probe(const char *buf, off_t len, unsigned int arch);
-int uImage_load(const char *buf, off_t len, struct Image_info *info);
+int uImage_probe(const unsigned char *buf, off_t len, unsigned int arch);
+int uImage_load(const unsigned char *buf, off_t len, struct Image_info *info);
#endif