diff options
author | Eric Andersen | 2000-12-13 16:41:29 +0000 |
---|---|---|
committer | Eric Andersen | 2000-12-13 16:41:29 +0000 |
commit | 21125543e189a88ae98a48248014839db40f4d61 (patch) | |
tree | 54a624d1c2c18d6945b495840f34442e2b8d8ccb | |
parent | 4836fd44f037c226e5eee83224cf090406602fae (diff) | |
download | busybox-21125543e189a88ae98a48248014839db40f4d61.zip busybox-21125543e189a88ae98a48248014839db40f4d61.tar.gz |
A couple of updates to fix some minor cross compiling issues
-rw-r--r-- | init.c | 1 | ||||
-rw-r--r-- | init/init.c | 1 | ||||
-rw-r--r-- | insmod.c | 6 | ||||
-rw-r--r-- | modutils/insmod.c | 6 |
4 files changed, 6 insertions, 8 deletions
@@ -88,7 +88,6 @@ struct serial_struct { #include <sys/reboot.h> #define init_reboot(magic) reboot(magic) #else - extern int reboot __P ((int __howto)); #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) #endif #endif diff --git a/init/init.c b/init/init.c index 75d2f33..0e9b741 100644 --- a/init/init.c +++ b/init/init.c @@ -88,7 +88,6 @@ struct serial_struct { #include <sys/reboot.h> #define init_reboot(magic) reboot(magic) #else - extern int reboot __P ((int __howto)); #define init_reboot(magic) reboot(0xfee1dead, 672274793, magic) #endif #endif @@ -78,7 +78,7 @@ #ifndef MODUTILS_MODULE_H #define MODUTILS_MODULE_H 1 -#ident "$Id: insmod.c,v 1.31 2000/12/07 19:56:48 markw Exp $" +#ident "$Id: insmod.c,v 1.32 2000/12/13 16:41:29 andersen Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -284,7 +284,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H #define MODUTILS_OBJ_H 1 -#ident "$Id: insmod.c,v 1.31 2000/12/07 19:56:48 markw Exp $" +#ident "$Id: insmod.c,v 1.32 2000/12/13 16:41:29 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ @@ -859,7 +859,7 @@ arch_apply_relocation(struct obj_file *f, break; default: - printf("Warning: unhandled reloc %d\n",ELF32_R_TYPE(rel->r_info)); + printf("Warning: unhandled reloc %d\n",(int)ELF32_R_TYPE(rel->r_info)); ret = obj_reloc_unhandled; break; } diff --git a/modutils/insmod.c b/modutils/insmod.c index 0b12c69..f2f1e80 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -78,7 +78,7 @@ #ifndef MODUTILS_MODULE_H #define MODUTILS_MODULE_H 1 -#ident "$Id: insmod.c,v 1.31 2000/12/07 19:56:48 markw Exp $" +#ident "$Id: insmod.c,v 1.32 2000/12/13 16:41:29 andersen Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -284,7 +284,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H #define MODUTILS_OBJ_H 1 -#ident "$Id: insmod.c,v 1.31 2000/12/07 19:56:48 markw Exp $" +#ident "$Id: insmod.c,v 1.32 2000/12/13 16:41:29 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ @@ -859,7 +859,7 @@ arch_apply_relocation(struct obj_file *f, break; default: - printf("Warning: unhandled reloc %d\n",ELF32_R_TYPE(rel->r_info)); + printf("Warning: unhandled reloc %d\n",(int)ELF32_R_TYPE(rel->r_info)); ret = obj_reloc_unhandled; break; } |