|
Lines 632-637
static int readConfigFile(const char *co
Link Here
|
| 632 |
oldchar = *endtag; |
632 |
oldchar = *endtag; |
| 633 |
*endtag = '\0'; |
633 |
*endtag = '\0'; |
| 634 |
|
634 |
|
|
|
635 |
if (oldchar == '\0') { |
| 636 |
message(MESS_ERROR, "%s:%d failed to parse keyword\n", |
| 637 |
configFile, lineNum); |
| 638 |
return 1; |
| 639 |
} |
| 640 |
if (!isspace((unsigned char)oldchar) && oldchar != '=') { |
| 641 |
message(MESS_ERROR, "%s:%d keyword '%s' not properly" |
| 642 |
" separated, found %#x\n", |
| 643 |
configFile, lineNum, start, oldchar); |
| 644 |
return 1; |
| 645 |
} |
| 635 |
if (!strcmp(start, "compress")) { |
646 |
if (!strcmp(start, "compress")) { |
| 636 |
newlog->flags |= LOG_FLAG_COMPRESS; |
647 |
newlog->flags |= LOG_FLAG_COMPRESS; |
| 637 |
|
648 |
|
|
Lines 1544-1554
duperror:
Link Here
|
| 1544 |
message(MESS_ERROR, "%s:%d lines must begin with a keyword " |
1555 |
message(MESS_ERROR, "%s:%d lines must begin with a keyword " |
| 1545 |
"or a filename (possibly in double quotes)\n", |
1556 |
"or a filename (possibly in double quotes)\n", |
| 1546 |
configFile, lineNum); |
1557 |
configFile, lineNum); |
| 1547 |
|
1558 |
return 1; |
| 1548 |
while (*start != '\n') |
|
|
| 1549 |
start++; |
| 1550 |
lineNum++; |
| 1551 |
start++; |
| 1552 |
} |
1559 |
} |
| 1553 |
} |
1560 |
} |
| 1554 |
|
1561 |
|