change getopt return from char to int

This commit is contained in:
MaZderMind
2013-04-02 22:55:08 +02:00
parent 2e2dde1daa
commit 44a25abaf8
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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':