diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -29,10 +29,10 @@ */ #include <stdlib.h> -#include <kcgi.h> #include <unistd.h> #include "browse.h" +#include "cgi.h" #include "http.h" enum page { @@ -47,14 +47,10 @@ static const char *const pages[PAGE__MAX] = { int main(void) { - enum kcgi_err err; - int page_ret_val; - struct kreq r; + int page_ret_val; + struct kreq r; - err = khttp_parse(&r, NULL, 0, pages, PAGE__MAX, PAGE_BROWSE); - - if (KCGI_OK != err) - return EXIT_FAILURE; + K_OK(khttp_parse(&r, NULL, 0, pages, PAGE__MAX, PAGE_BROWSE)); /* * Make sure basic request parameters are as expected : GET or POST, |