From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Jander Date: Thu, 24 Nov 2005 18:16:51 +0200 Subject: Fwd: [U-Boot-Users] u-boot 1.1.2 and atoi in exports not working In-Reply-To: <6a7ac2300511240652x5c3a1b34r438ed7730d62dc06@mail.gmail.com> References: <6a7ac2300511240623t31e9e96bp9b48e224527e2d2@mail.gmail.com> <6a7ac2300511240637p1b281106k2849ac3bb5a96715@mail.gmail.com> <6a7ac2300511240652x5c3a1b34r438ed7730d62dc06@mail.gmail.com> Message-ID: <200511241716.51670.david.jander@protonic.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Just some thoughts: > common/hush.c:104:#include /* 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.