This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: User env not set on chrootshell


It seems that die2 doesn't like to take anything other
than a string?? Hence attempt at a cast.
chrootshell.c: In function `main':
chrootshell.c:132: warning: passing arg 3 of `_die'
makes pointer from integer without a cast


--- Paul Smith <psmith@nortel.com> wrote:

> %% EJS <ejshoor@yahoo.com> writes:
> 
>   e> +		die2("no such user id %s\n",(char
> *)getuid());
> 
> I'm sure Dan would catch this, but this is
> incorrect.  You mean
> something like:
> 
>     	die2("no such user id %lu\n", (unsigned
> long)getuid());
> 
> -- 
>
-------------------------------------------------------------------------------
>  Paul D. Smith <psmith@nortel.com>           HASMAT:
> HA Software Mthds & Tools
>  "Please remain calm...I may be mad, but I am a
> professional." --Mad Scientist
>
-------------------------------------------------------------------------------
>         These are my opinions--Nortel takes no
> responsibility for them.
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]