remove #ifdef HAVE_CGI
authorFelix Fietkau <nbd@openwrt.org>
Fri, 4 Jan 2013 18:39:13 +0000 (19:39 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 4 Jan 2013 18:39:49 +0000 (19:39 +0100)
main.c

diff --git a/main.c b/main.c
index ab6fbb061d8788b27f88f3c67d01f8864b435d5f..160f93246be661e1c87672d7136435e6cd953b1a 100644 (file)
--- 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);