Changeset 255 in Main for trunk/Server/config.c


Ignore:
Timestamp:
Oct 4, 2024, 1:08:58 PM (6 weeks ago)
Author:
Nishi
Message:

get listdir working [release 2.03E]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/config.c

    r253 r255  
    489489                free(line);
    490490                fclose(f);
    491                 for(portcount = 0; config.ports[portcount] != -1; portcount++);
    492                 if(portcount == 0){
     491                for(portcount = 0; config.ports[portcount] != -1; portcount++)
     492                        ;
     493                if(portcount == 0) {
    493494                        return 1;
    494                 }else{
     495                } else {
    495496                        return stop;
    496497                }
Note: See TracChangeset for help on using the changeset viewer.