change getopt return from char to int
This commit is contained in:
+2
-1
@@ -49,7 +49,8 @@ static int init(int argc, char **argv) {
|
||||
|
||||
optind = 0;
|
||||
// some platforms apparently require optreset = 1; - which?
|
||||
char opt, *mid;
|
||||
int opt;
|
||||
char *mid;
|
||||
while ((opt = getopt(argc, argv, "d:i:n:o:")) > 0) {
|
||||
switch (opt) {
|
||||
case 'd':
|
||||
|
||||
Reference in New Issue
Block a user