Merge pull request #671 from mstorsjo/c-api-test-warnings

Make the first C function parameter const void* in c_interface_test
This commit is contained in:
ruil2 2014-04-11 16:25:17 +08:00
commit 21ed4a1f06

View File

@ -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)