Added socket stream and socket into SilcClientConnection context.
[silc.git] / lib / silchttp / tests / test_silchttpserver.c
index 197e5debb668e5b2a63592ec989a042562ac03fc..cb9050b14f93a6c09b1595de03c7a815e3417ca6 100644 (file)
@@ -65,7 +65,7 @@ static void http_callback_file(SilcHttpServer httpd, SilcHttpConnection conn,
     SILC_LOG_DEBUG(("Filename: '%s'", filename));
 
     if (!usephp) {
-      filedata = silc_file_readfile(filename, &data_len);
+      filedata = silc_file_readfile(filename, &data_len, NULL);
       if (!filedata) {
        silc_http_server_send_error(httpd, conn, "404 Not Found",
                                    "<body><h1>404 Not Found</h1><p>The page you are looking for cannot be located</body>");
@@ -121,7 +121,7 @@ int main(int argc, char **argv)
   signal(SIGPIPE, SIG_IGN);
 
   SILC_LOG_DEBUG(("Allocating scheduler"));
-  schedule = silc_schedule_init(0, NULL);
+  schedule = silc_schedule_init(0, NULL, NULL);
   if (!schedule)
     goto err;