Fwd: [U-Boot-Users] u-boot 1.1.2 and atoi in exports not working

David Jander david.jander at protonic.nl
Thu Nov 24 17:16:51 CET 2005


Just some thoughts:

> common/hush.c:104:#include <stdlib.h>    /* getenv, atoi */

This looks suspicious for a bootloader! I would examine this a little bit 
closer. Where's stdlib.h? Is this line really compiled into u-boot? I think 
not, look inside the code, there's an "#ifndef __U_BOOT__" right in front of 
it.

>[...]
> board/MAI/bios_emulator/x86interface.c:56:int atoi(char *string)
>[...]
> board/xilinx/xilinx_iic/iic_adapter.c:146:atoi(uchar * string)

In these two places, someone seems to define an atoi(). It doesn't look like a 
normal place to do it if it was meant to be available to everyone. These 
obviously are "local" patches to be able to run copied code.
Anyway, atoi is a pretty simple function, I'd just do the same as these two 
guys, and paste a sample implementation into my code....

Greetings,

-- 
David Jander
Protonic Holland.




More information about the U-Boot mailing list