148 return (0);
149 }
150
151 while (line_len > 1 && *index < mem_len) {
152 *line = mem[(*index)++];
153 --line_len;
154 ++line;
155
156 if (*(line-1) == '\r' || *(line-1) == '\n') {
157 break;
158 }
159 }
160 *line = '\0';
161
162 return (1);
163 }
164
165 /*
166 * Parse special command from configuration file. Special command
167 * has the following format :
168
169 * disable_cause <cause name>
170 */
171 static int
172 parse_config_cmd(char *begin, lt_parser_t *parser)
173 {
174 char *tmp;
175 char old_chr = 0;
176
177 /*
178 * disable_cause FSFlush Daemon
179 * ^
180 */
181 if (*begin == '\0') {
182 return (0);
183 }
184
185 for (tmp = begin;
186 *tmp != '\0' && !isspace(*tmp);
187 ++tmp) {
188 }
|
148 return (0);
149 }
150
151 while (line_len > 1 && *index < mem_len) {
152 *line = mem[(*index)++];
153 --line_len;
154 ++line;
155
156 if (*(line-1) == '\r' || *(line-1) == '\n') {
157 break;
158 }
159 }
160 *line = '\0';
161
162 return (1);
163 }
164
165 /*
166 * Parse special command from configuration file. Special command
167 * has the following format :
168 *
169 * disable_cause <cause name>
170 */
171 static int
172 parse_config_cmd(char *begin, lt_parser_t *parser)
173 {
174 char *tmp;
175 char old_chr = 0;
176
177 /*
178 * disable_cause FSFlush Daemon
179 * ^
180 */
181 if (*begin == '\0') {
182 return (0);
183 }
184
185 for (tmp = begin;
186 *tmp != '\0' && !isspace(*tmp);
187 ++tmp) {
188 }
|