diff options
Diffstat (limited to 'src/lib/cbfs.c')
-rw-r--r-- | src/lib/cbfs.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index f99f666d3c..0bb6e838fb 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -22,13 +22,7 @@ #include <console/console.h> #include <cbfs.h> #include <lib.h> - -#ifndef CONFIG_BIG_ENDIAN -#define ntohl(x) ( ((x&0xff)<<24) | ((x&0xff00)<<8) | \ - ((x&0xff0000) >> 8) | ((x&0xff000000) >> 24) ) -#else -#define ntohl(x) (x) -#endif +#include <arch/byteorder.h> int cbfs_decompress(int algo, void *src, void *dst, int len) { @@ -213,7 +207,7 @@ void * cbfs_load_stage(const char *name) void * cbfs_get_file(const char *name) { - return cbfs_find(name); + return (void *) cbfs_find(name); } int cbfs_execute_stage(const char *name) |