lkml.org 
[lkml]   [1997]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: SCSI disk devices
Date
From

terje.malmedal@usit.uio.no said:
> terje.malmedal
>
[snip]
>
> BTW. Linux for ppc uses an unsigned char so this code does not work:
>
> char c;
> ...
> while ((c = getopt(argc, argv, "flvsm:")) != EOF)
> ...
>
> c needs to be an int instead. This is a problem in scsidev and
> scsiinfo, apart from that both programs work very nicely on my
> machine.
>

This is a programming error. Getopt returns an integer.

int getopt(int argc, char * const argv[], const char *optstring);


--
+---------------------------------------------------------------+
| Bob Taylor Email: brtaylor@qtpi.lakewood.ca.us |
|---------------------------------------------------------------|
| A witty statement goes here! (when I get to it!) |
+---------------------------------------------------------------+



\
 
 \ /
  Last update: 2005-03-22 13:39    [W:2.209 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site