Removed wrong errno setting.
[silc.git] / lib / silchttp / silchttpserver.c
index cd94c407f4f3d7f53dfd06961c2daf46eb8a1400..f43b26a354d8fd0703d82beab9929246e57586df 100644 (file)
@@ -194,7 +194,7 @@ static SilcBool silc_http_server_parse(SilcHttpServer httpd,
 
     /* Check we have received all data */
     cl = silc_mime_get_field(conn->curheaders, "Content-Length");
-    if (cl && sscanf(cl, "%lu", (unsigned long *)&cll) == 1) {
+    if (cl && sscanf(cl, "%lu", &cll) == 1) {
       if (data_len < cll) {
        /* More data to come */
        silc_mime_free(conn->curheaders);
@@ -403,7 +403,7 @@ static void silc_http_server_io(SilcStream stream, SilcStreamStatus status,
 
 /* Accepts new connection */
 
-static void silc_http_server_new_connection(SilcNetStatus status,
+static void silc_http_server_new_connection(SilcResult status,
                                            SilcStream stream,
                                            void *context)
 {