Compilation warning fixes.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 6 Nov 2007 10:16:46 +0000 (10:16 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 6 Nov 2007 10:16:46 +0000 (10:16 +0000)
lib/silcasn1/silcasn1_encode.c
lib/silchttp/silchttpserver.c

index f2cf80c714d0a66bf9031669bc58f9e57797e7c1..58dfbf278bcdedbcf62961c4e7b56a2962661f85 100644 (file)
@@ -352,7 +352,7 @@ silc_asn1_encoder(SilcAsn1 asn1, SilcStack stack1, SilcStack stack2,
        /* Get OID words from the string */
        cp = strchr(oidstr, '.');
        while (cp) {
-         if (sscanf(oidstr, "%lu", (unsigned long *)&oid) != 1) {
+         if (sscanf(oidstr, "%lu", &oid) != 1) {
            SILC_LOG_DEBUG(("Malformed OID string"));
            goto fail;
          }
@@ -363,7 +363,7 @@ silc_asn1_encoder(SilcAsn1 asn1, SilcStack stack1, SilcStack stack2,
          cp = strchr(oidstr, '.');
 
          if (!cp) {
-           if (sscanf(oidstr, "%lu", (unsigned long *)&oid) != 1) {
+           if (sscanf(oidstr, "%lu", &oid) != 1) {
              SILC_LOG_DEBUG(("Malformed OID string"));
              goto fail;
            }
index cd94c407f4f3d7f53dfd06961c2daf46eb8a1400..661f1d9e1573bd4439d40967a09aec9e6390e705 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);