*/
-#include "silc.h"
+#include "silcruntime.h"
#include "silchttpserver.h"
/************************** Types and definitions ***************************/
static SilcBool silc_http_server_parse(SilcHttpServer httpd,
SilcHttpConnection conn)
{
- SilcUInt32 data_len, cll;
+ SilcUInt32 data_len;
+ unsigned long cll;
unsigned char *data, *tmp;
const char *value, *cl;
SilcBufferStruct postdata;
SILC_LOG_DEBUG(("Start HTTP server at %s:%d", ip, port));
+ if (!schedule)
+ schedule = silc_schedule_get_global();
+
if (!ip || !schedule || !callback)
return FALSE;