}
line=0;
- while((fgets(buffer,sizeof(buffer),fp))) {
+ while((GETLINE(buffer, fp))) {
line++;
- buffer[sizeof(buffer)-1]=0;
- if (buffer[0]) buffer[strlen(buffer)-1]=0;
p=buffer;
while(*p <= 32) { /* skip spaces */
} else
if (!strcmp(option,"reject-cause")) {
- if (params[0][0]==0) {
- SPRINT(gsm_conf_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option);
- goto error;
- }
- gsm_conf->reject_cause = atoi(params[0]);
-
+ SPRINT(gsm_conf_error, "Option '%s' in gsm.conf has moved to openbsc.cfg", option);
+ goto error;
} else
if (!strcmp(option,"allow-all")) {
gsm_conf->allow_all = 1;