From 1e0bc1f164ce73f9feeeb14754d09072b3e9bc68 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Sat, 21 Jan 2017 21:49:42 +0400 Subject: Fix compiler warnings on FreeBSD * common/compat.c: Fix "implicit declaration of function 'issetugid'" warning. On FreeBSD, it's required to define __BSD_VISIBLE to make issetugid(2) visible * common/test-message.c: Fix "implicit declaration of function 'asprintf'" by including * p11-kit/test-iter.c: Fix "format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int'" by changing format string to "%d" --- p11-kit/test-iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p11-kit') diff --git a/p11-kit/test-iter.c b/p11-kit/test-iter.c index 3f5a76f..4ce480a 100644 --- a/p11-kit/test-iter.c +++ b/p11-kit/test-iter.c @@ -780,7 +780,7 @@ test_slot_match_by_id (void) modules = initialize_and_get_modules (); uri = p11_kit_uri_new (); - ret = asprintf (&string, "pkcs11:slot-id=%lu", MOCK_SLOT_ONE_ID); + ret = asprintf (&string, "pkcs11:slot-id=%d", MOCK_SLOT_ONE_ID); assert (ret > 0); ret = p11_kit_uri_parse (string, P11_KIT_URI_FOR_SLOT, uri); free (string); -- cgit v1.1