Subversion Repositories Tewi

Rev

Rev 253 | Rev 257 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 253 Rev 255
Line 1... Line 1...
1
/* $Id: config.c 253 2024-10-04 03:13:36Z nishi $ */
1
/* $Id: config.c 255 2024-10-04 04:08:58Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "tw_config.h"
5
#include "tw_config.h"
6
#include "tw_module.h"
6
#include "tw_module.h"
Line 486... Line 486...
486
				free(tmp);
486
				free(tmp);
487
			}
487
			}
488
		}
488
		}
489
		free(line);
489
		free(line);
490
		fclose(f);
490
		fclose(f);
491
		for(portcount = 0; config.ports[portcount] != -1; portcount++);
491
		for(portcount = 0; config.ports[portcount] != -1; portcount++)
-
 
492
			;
492
		if(portcount == 0){
493
		if(portcount == 0) {
493
			return 1;
494
			return 1;
494
		}else{
495
		} else {
495
			return stop;
496
			return stop;
496
		}
497
		}
497
	} else {
498
	} else {
498
		cm_log("Config", "Could not open the file");
499
		cm_log("Config", "Could not open the file");
499
		return 1;
500
		return 1;