X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src%2Ftest.c;h=c395aef7bc0bf4bc1957463cc49afaed12cde95f;hb=358281a17a91451aed649d6be6c1fd4890c4cfc0;hp=1f2bea4864efc68a88e317abee1772fee3105b2c;hpb=2ea69d4aabfaa9ea1e759c464bf6825a9a17cafb;p=libside.git diff --git a/src/test.c b/src/test.c index 1f2bea4..c395aef 100644 --- a/src/test.c +++ b/src/test.c @@ -1919,7 +1919,8 @@ static void test_gather_vla_flex(void) { side_event_cond(my_provider_event_gathervlaflex) { - struct testgathervlaflex *mystruct = malloc(sizeof(*mystruct) + VLAFLEXLEN + sizeof(uint64_t)); + struct testgathervlaflex *mystruct = + (struct testgathervlaflex *) malloc(sizeof(*mystruct) + VLAFLEXLEN + sizeof(uint64_t)); mystruct->len = VLAFLEXLEN; mystruct->otherfield = 0;