src/main.c

changeset 31
ed440bcd9740
parent 30
a285ee393860
child 33
866025982aa9
equal deleted inserted replaced
30:a285ee393860 31:ed440bcd9740
38 char *valid; 38 char *valid;
39 unsigned long int time, port; 39 unsigned long int time, port;
40 uint8_t timeunit = 60; 40 uint8_t timeunit = 60;
41 size_t len; 41 size_t len;
42 42
43 for (char opt ; (opt = getopt(argc, argv, "a:bhp:rst:")) != -1 ;) { 43 for (int opt ; (opt = getopt(argc, argv, "a:bhp:rst:")) != -1 ;) {
44 switch (opt) { 44 switch (opt) {
45 case 'b': 45 case 'b':
46 settings->gameinfo.servercolor = BLACK; 46 settings->gameinfo.servercolor = BLACK;
47 break; 47 break;
48 case 'r': 48 case 'r':

mercurial