summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/event.c b/event.c
index 4ec0b47..5e7fb80 100644
--- a/event.c
+++ b/event.c
@@ -9,7 +9,7 @@
#include <ctype.h>
-static char *duptolower(const char *s) {
+char* cEventBlock::duptolower(const char *s) {
char *c = strdup(s);
char *p = c;
for (; *p; ++p)
@@ -65,8 +65,8 @@ bool cEventBlock::Acceptable(const char *Event) const
if (mRegularExp)
return regexec(&mExpression, Event, 0, NULL, 0) != 0;
else if (mIgnoreCase) {
- char *ev = duptolower(Event);
- char *pa = duptolower(mPattern);
+ char *ev = cEventBlock::duptolower(Event);
+ char *pa = cEventBlock::duptolower(mPattern);
printf("check for %s in %s\n", pa, ev);
bool res = strstr(ev, pa) == NULL;
free(ev); free(pa);