Revert "Fix -Wcalloc-transposed-args warnings"

This reverts commit f97c27efe9.
This commit is contained in:
Hans Ulrich Niedermann
2024-01-31 23:18:45 +01:00
parent f97c27efe9
commit a57b7d8f05
11 changed files with 24 additions and 24 deletions

View File

@@ -32,7 +32,7 @@ int main(int argc, char **argv) {
/* Now open all cameras we autodected for usage */
printf("Number of cameras: %d\n", count);
cams = calloc (count, sizeof (Camera*));
cams = calloc (sizeof (Camera*),count);
for (i = 0; i < count; i++) {
gp_list_get_name (list, i, &name);
gp_list_get_value (list, i, &value);