summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/main.c b/main.c
index 6abcbc5..6b54a5e 100644
--- a/main.c
+++ b/main.c
@@ -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,