ref: 21ed4a1f06a210f1285d6c6c1c5673dff751fd4c
parent: 75476093368a841a3e89d8c201e24cac32b69de8
parent: 6d93d800e7a667967d0dba228ba73d77be0c2960
author: ruil2 <ruil2@cisco.com>
date: Fri Apr 11 12:25:17 EDT 2014
Merge pull request #671 from mstorsjo/c-api-test-warnings Make the first C function parameter const void* in c_interface_test
--- a/test/api/c_interface_test.c
+++ b/test/api/c_interface_test.c
@@ -2,7 +2,7 @@
#include <stddef.h>
// Cast to this function type to ignore other parameters.
-typedef int (*Func)(void*);
+typedef int (*Func)(const void*);
#define CALL(p, m) (((Func)((*p)->m))(p))
// Check if the function return an expected number.
#define CHECK(n, p, m) check(n, CALL(p, m), #m)