diff options
author | Petri Latvala <petri.latvala@intel.com> | 2019-01-16 13:20:34 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-01-21 13:49:11 +0200 |
commit | 8a048037fc938ead91807793f151fed54f1553dd (patch) | |
tree | 911a71c6f9e7bcb2760dea495fe947ea14db6e01 /tests/kms_plane_multiple.c | |
parent | c519474d19f664668f987fbf7a834ca58986c2af (diff) |
tests: Use correct type for calloc
No actual difference, size of a pointer is the same as
pointer-to-pointer.
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'tests/kms_plane_multiple.c')
-rw-r--r-- | tests/kms_plane_multiple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c index 41024cb2..617054d9 100644 --- a/tests/kms_plane_multiple.c +++ b/tests/kms_plane_multiple.c @@ -69,7 +69,7 @@ static void test_init(data_t *data, enum pipe pipe, int n_planes) { data->pipe_crc = igt_pipe_crc_new(data->drm_fd, pipe, INTEL_PIPE_CRC_SOURCE_AUTO); - data->plane = calloc(n_planes, sizeof(data->plane)); + data->plane = calloc(n_planes, sizeof(*data->plane)); igt_assert_f(data->plane != NULL, "Failed to allocate memory for planes\n"); data->fb = calloc(n_planes, sizeof(struct igt_fb)); |