]> git.sur5r.net Git - u-boot/blobdiff - include/libfdt.h
Fix an overflow case in fdt_offset_ptr() detected by GCC 4.3.
[u-boot] / include / libfdt.h
index 94c35e330c8d7a62a760b9d8774f08d3df1c2db0..5492a535207816765730f366bbec52e600969e40 100644 (file)
 /* Low-level functions (you probably don't need these)                */
 /**********************************************************************/
 
-const void *fdt_offset_ptr(const void *fdt, int offset, int checklen);
+const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);
 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen)
 {
        return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen);