Messages in this thread | | | Subject | Re: SCSI disk devices | Date | Sun, 04 May 1997 12:48:07 -0700 | From | Bob Taylor <> |
| |
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!) | +---------------------------------------------------------------+
| |