From 1ab605b70d6576a7c79ba426ca8f5a917108e151 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 22 Jul 2024 16:45:29 +0200 Subject: [PATCH] Fix calloc() argument order Catched by a new gcc 14.1.1 warning. --- test/emu/ovni/flush-overhead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/emu/ovni/flush-overhead.c b/test/emu/ovni/flush-overhead.c index 0aedd6f..6d07c9c 100644 --- a/test/emu/ovni/flush-overhead.c +++ b/test/emu/ovni/flush-overhead.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC) +/* Copyright (c) 2021-2024 Barcelona Supercomputing Center (BSC) * SPDX-License-Identifier: GPL-3.0-or-later */ #include @@ -37,7 +37,7 @@ main(void) exit(EXIT_FAILURE); } - double *times = calloc(sizeof(double), NRUNS); + double *times = calloc(NRUNS, sizeof(double)); if (times == NULL) { perror("calloc failed"); exit(EXIT_FAILURE);