From ba086eee66e6ac97b1e5bcfb27acebcf961d9473 Mon Sep 17 00:00:00 2001 From: aldot Date: Sat, 3 Jun 2006 19:35:15 +0000 Subject: - move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early. - remove two supposedly superfluous newlines from ...error_msg() in modprobe and use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@15272 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- modutils/insmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modutils/insmod.c') diff --git a/modutils/insmod.c b/modutils/insmod.c index f38daa257..f8464dbd1 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -58,6 +58,7 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ +#include "busybox.h" #include #include #include @@ -70,7 +71,6 @@ #include #include #include -#include "busybox.h" #if !defined(CONFIG_FEATURE_2_4_MODULES) && \ !defined(CONFIG_FEATURE_2_6_MODULES) @@ -3313,7 +3313,7 @@ static struct obj_file *obj_load(FILE * fp, int loadprogbits) } if (f->header.e_ident[EI_CLASS] != ELFCLASSM || f->header.e_ident[EI_DATA] != (BB_BIG_ENDIAN - ? ELFDATA2MSB : ELFDATA2LSB) + ? ELFDATA2MSB : ELFDATA2LSB) || f->header.e_ident[EI_VERSION] != EV_CURRENT || !MATCH_MACHINE(f->header.e_machine)) { bb_error_msg("ELF file not for this architecture"); -- cgit v1.2.3-55-g6feb