[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#299442: osdsh: does not start on powerpc



On Fri, Mar 18, 2005 at 10:05:43AM -0500, Michel Dänzer wrote:
> On Fri, 2005-03-18 at 15:19 +0100, Wolfram Quester wrote:
> > 
> > On Fri, Mar 18, 2005 at 02:56:38PM +0100, Lo�c Le Guyader wrote:
> > > Le 18 March 2005, Wolfram Quester, ? bout, prit son clavier pour
> > > taper sur son ?cran:
> > > > The solution is to write int c; instead of char c;
> > > 
> > > What about "signed char c;"?
> > 
> > Yes, I thought about this too, but according to man getopt_long
> > getopt_long itselft returnes an int.
> > 
> > In the end, I think it doesn't matter.
> 
> If the type returned by the function doesn't matter, then what does?
> *shrug*
Well, in this case you have to typecast to char, either by doing 
signed char c;
c = getopt_long(....);

or you do it later in the switch(c) statement. This is why I think it
doesn't matter in the end.

With best regards,

Wolfi
> 
> 
> -- 
> Earthling Michel Dänzer      |     Debian (powerpc), X and DRI developer
> Libre software enthusiast    |   http://svcs.affero.net/rm.php?r=daenzer

Attachment: signature.asc
Description: Digital signature


Reply to: