37 #include "../util/pool.h" |
37 #include "../util/pool.h" |
38 #include "../public/nsapi.h" |
38 #include "../public/nsapi.h" |
39 #include "../util/plist.h" |
39 #include "../util/plist.h" |
40 #include "../util/date.h" |
40 #include "../util/date.h" |
41 |
41 |
42 #include "../../ucx/string.h" |
42 #include <ucx/string.h> |
43 |
43 |
44 #include "webserver.h" |
44 #include "webserver.h" |
45 #include "log.h" |
45 #include "log.h" |
46 #include "httprequest.h" |
46 #include "httprequest.h" |
47 #include "httplistener.h" |
47 #include "httplistener.h" |
165 log_ereport(LOG_INFORM, "startup"); |
165 log_ereport(LOG_INFORM, "startup"); |
166 |
166 |
167 int status; |
167 int status; |
168 status = webserver_init(); |
168 status = webserver_init(); |
169 if(status != 0) { |
169 if(status != 0) { |
170 log_ereport(LOG_FAILURE, "cannot initialize server."); |
170 log_ereport(LOG_FAILURE, "Cannot initialize server."); |
171 return EXIT_FAILURE; |
171 return EXIT_FAILURE; |
172 } |
172 } |
173 |
173 |
174 status = webserver_run(); |
174 status = webserver_run(); |
175 if(status != 0) { |
175 if(status != 0) { |