src/server/config/serverconfig.c

changeset 514
922bfe380c8e
parent 512
afcdb57e329d
equal deleted inserted replaced
513:9a49c245a49c 514:922bfe380c8e
27 */ 27 */
28 28
29 29
30 #include "serverconfig.h" 30 #include "serverconfig.h"
31 #include "conf.h" 31 #include "conf.h"
32 #include "logging.h"
32 33
33 #include <stdio.h> 34 #include <stdio.h>
34 #include <stdlib.h> 35 #include <stdlib.h>
35 #include <string.h> 36 #include <string.h>
36 #include <ctype.h> 37 #include <ctype.h>
125 for(i=start;i<content.length;i++) { 126 for(i=start;i<content.length;i++) {
126 char c = content.ptr[i]; 127 char c = content.ptr[i];
127 if(c == '\n') { 128 if(c == '\n') {
128 if(quote) { 129 if(quote) {
129 *pos = i; 130 *pos = i;
130 log_ereport( 131 ws_cfg_log(
131 LOG_FAILURE, 132 LOG_FAILURE,
132 "cfgparser: file %s:%d:%d: error: %s", 133 "cfgparser: file %s:%d:%d: error: %s",
133 parser->filename, 134 parser->filename,
134 parser->linenum, 135 parser->linenum,
135 parser->linepos+2, 136 parser->linepos+2,

mercurial