summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-04 19:39:13 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-04 19:39:49 +0100
commit0e7c0877717534db5ecac58df9f01c60776e85db (patch)
treea1d80779bbe39e5689018f4fcde177f021172c8a
parent119244d9b13e84eb898f9fb97e83cac260c1a0b5 (diff)
remove #ifdef HAVE_CGI
-rw-r--r--main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/main.c b/main.c
index ab6fbb0..160f932 100644
--- a/main.c
+++ b/main.c
@@ -84,20 +84,14 @@ static void uh_config_parse(void)
conf.error_handler = strdup(col1);
}
-#ifdef HAVE_CGI
else if ((line[0] == '*') && (strchr(line, ':') != NULL)) {
if (!(col1 = strchr(line, '*')) || (*col1++ = 0) ||
!(col2 = strchr(col1, ':')) || (*col2++ = 0) ||
!(eol = strchr(col2, '\n')) || (*eol++ = 0))
continue;
- if (!uh_interpreter_add(col1, col2))
- fprintf(stderr,
- "Unable to add interpreter %s for extension %s: "
- "Out of memory\n", col2, col1
- );
+ uh_interpreter_add(col1, col2);
}
-#endif
}
fclose(c);