Reorder arguments in calls to calloc

to silence calloc-tran sposed-args warnings.
This commit is contained in:
pstef 2025-03-25 20:15:20 +00:00
parent ac38cfe8da
commit 052acd4e38
2 changed files with 3 additions and 3 deletions

View File

@ -4554,9 +4554,9 @@ static void *gl2_init(const video_info_t *video,
/* Empty buffer that we use to clear out
* the texture with on res change. */
gl->empty_buf = calloc(sizeof(uint32_t), gl->tex_w * gl->tex_h);
gl->empty_buf = calloc(gl->tex_w * gl->tex_h, sizeof(uint32_t));
gl->conv_buffer = calloc(sizeof(uint32_t), gl->tex_w * gl->tex_h);
gl->conv_buffer = calloc(gl->tex_w * gl->tex_h, sizeof(uint32_t));
if (!gl->conv_buffer)
goto error;

View File

@ -51,7 +51,7 @@ linked_list_t *linked_list_new(void)
{
linked_list_t *list;
list = (linked_list_t *)calloc(sizeof(linked_list_t), 1);
list = (linked_list_t *)calloc(1, sizeof(linked_list_t));
return list;
}