Reorder arguments in calls to calloc
to silence calloc-tran sposed-args warnings.
This commit is contained in:
parent
ac38cfe8da
commit
052acd4e38
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue