public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: David Jander <david.jander@protonic.nl>
To: u-boot@lists.denx.de
Subject: Fwd: [U-Boot-Users] u-boot 1.1.2 and atoi in exports not working
Date: Thu, 24 Nov 2005 18:16:51 +0200	[thread overview]
Message-ID: <200511241716.51670.david.jander@protonic.nl> (raw)
In-Reply-To: <6a7ac2300511240652x5c3a1b34r438ed7730d62dc06@mail.gmail.com>

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.

  reply	other threads:[~2005-11-24 16:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-24 14:23 [U-Boot-Users] u-boot 1.1.2 and atoi in exports not working John Davis
2005-11-24 14:35 ` Wolfgang Denk
     [not found]   ` <6a7ac2300511240637p1b281106k2849ac3bb5a96715@mail.gmail.com>
2005-11-24 14:52     ` Fwd: " John Davis
2005-11-24 16:16       ` David Jander [this message]
2005-11-24 16:42         ` Wolfgang Denk
2005-11-28 15:30           ` John Davis
2005-11-24 15:53     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200511241716.51670.david.jander@protonic.nl \
    --to=david.jander@protonic.nl \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox