diff --git a/.gitignore b/.gitignore index 0686131..591d428 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ nasuh-server .idea/ +*.0 diff --git a/handlers.c b/handlers.c index 704ff67..d48e90c 100644 --- a/handlers.c +++ b/handlers.c @@ -14,7 +14,7 @@ enum MHD_Result size_t * upload_data_size, void ** ptr) { static int dummy; - const char * page = cls; + const char * page = INDEX; struct MHD_Response * response; int ret; diff --git a/handlers.h b/handlers.h index f80caa0..b7c87e1 100644 --- a/handlers.h +++ b/handlers.h @@ -8,8 +8,6 @@ #ifndef NASUH_HANDLERS_H #define NASUH_HANDLERS_H -#define PAGE "nasuh search engine"\ - "all your programming needs" enum MHD_Result handle_all(void * cls, @@ -22,4 +20,8 @@ enum MHD_Result void ** ptr); +#define INDEX "nasuh search engine"\ + "all your programming needs" + + #endif //NASUH_HANDLERS_H diff --git a/handlers.o b/handlers.o deleted file mode 100644 index 0a18a15..0000000 Binary files a/handlers.o and /dev/null differ diff --git a/main.c b/main.c index ff8dc0d..8535c06 100644 --- a/main.c +++ b/main.c @@ -17,7 +17,7 @@ int main(int argc, NULL, NULL, &handle_all, - PAGE, + NULL, MHD_OPTION_END); if (d == NULL) return 1; diff --git a/main.o b/main.o deleted file mode 100644 index 077d869..0000000 Binary files a/main.o and /dev/null differ