]> granicus.if.org Git - p11-kit/commitdiff
Fix compiler warnings.
authorStef Walter <stefw@collabora.co.uk>
Tue, 7 Jun 2011 11:46:14 +0000 (11:46 +0000)
committerStef Walter <stefw@collabora.co.uk>
Tue, 7 Jun 2011 11:46:14 +0000 (11:46 +0000)
p11-kit/hash.c
tests/uri-test.c

index 1bb9d61af55db65dd2823b4d1a55aec78474f819..9be1c3299792846485074529a6435b212df89c0e 100644 (file)
@@ -442,7 +442,7 @@ hash_intptr_equal (const void *int_one, const void *int_two)
 unsigned int
 hash_direct_hash (const void *ptr)
 {
-       return (unsigned int)ptr;
+       return (unsigned int)(unsigned long)ptr;
 }
 
 int
index d26e090d602aab59dff8e8357f3b3e0a91fdb390..100df3183bd0304cbdda3f258e8c85b78f286d2a 100644 (file)
@@ -322,6 +322,7 @@ test_uri_build_empty (CuTest *tc)
        CuAssertPtrNotNull (tc, uri);
 
        ret = p11_kit_uri_format (uri, P11_KIT_URI_FOR_ANY, &string);
+       CuAssertIntEquals (tc, P11_KIT_URI_OK, ret);
        CuAssertStrEquals (tc, "pkcs11:", string);
        free (string);