INDEX now separate

This commit is contained in:
Senad Uka
2022-11-20 07:47:52 +01:00
parent ee1eb89e9a
commit 317dcfbd06
6 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
nasuh-server
.idea/
*.0

View File

@@ -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;

View File

@@ -8,8 +8,6 @@
#ifndef NASUH_HANDLERS_H
#define NASUH_HANDLERS_H
#define PAGE "<html><head><title>nasuh search engine</title>"\
"</head><body>all your programming needs</body></html>"
enum MHD_Result
handle_all(void * cls,
@@ -22,4 +20,8 @@ enum MHD_Result
void ** ptr);
#define INDEX "<html><head><title>nasuh search engine</title>"\
"</head><body>all your programming needs</body></html>"
#endif //NASUH_HANDLERS_H

Binary file not shown.

2
main.c
View File

@@ -17,7 +17,7 @@ int main(int argc,
NULL,
NULL,
&handle_all,
PAGE,
NULL,
MHD_OPTION_END);
if (d == NULL)
return 1;

BIN
main.o

Binary file not shown.