reopenasap = 1;
}
-static void logmatch(struct logdir *ld)
+static void logmatch(struct logdir *ld, char* lineptr, int lineptr_len)
{
char *s;
switch (s[0]) {
case '+':
case '-':
- if (pmatch(s+1, line, linelen))
+ if (pmatch(s+1, lineptr, lineptr_len))
ld->match = s[0];
break;
case 'e':
case 'E':
- if (pmatch(s+1, line, linelen))
+ if (pmatch(s+1, lineptr, lineptr_len))
ld->matcherr = s[0];
break;
}
if (ld->fddir == -1)
continue;
if (ld->inst)
- logmatch(ld);
+ logmatch(ld, lineptr, linelen);
if (ld->matcherr == 'e') {
/* runit-1.8.0 compat: if timestamping, do it on stderr too */
////full_write(STDERR_FILENO, printptr, printlen);