[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] Building uname...
From:       mjn3 () codepoet ! org (Manuel Novoa III)
Date:       2002-03-24 23:54:03
[Download RAW message or body]

On Sun, Mar 24, 2002 at 05:03:28PM -0500, Thomas Cameron wrote:
> Hello again,
>     If you look through the code, you'll notice that 'opt' is of type
> 'int', and yet it is printf'ed as %s.  If my memory serves me, %s is for

"opt" isn't printed at all.  Look up the conditional operator
"Z ? X : Y" in any C book.

> string or single, right?  I really don't remember, as it's been so long
> since I've worked with C.  Anyway, might the operations being performed
> on 'opt' have anything to do with it?  I would believe that the compiler
> would make operations more strict when using optimizations.  Anyway,
> it's just a thought.

Try the code now in CVS.

Manuel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic