content caches: Squash -Wcalloc-transposed-args (gcc-14)

This commit is contained in:
Michael Drake 2024-05-24 20:57:44 +01:00
parent 2bffbebad7
commit 67005a0d7e
2 changed files with 3 additions and 3 deletions

View File

@ -826,7 +826,7 @@ nserror hlcache_handle_abort(hlcache_handle *handle)
if (clone == NULL)
return NSERROR_NOMEM;
entry = calloc(sizeof(struct hlcache_entry), 1);
entry = calloc(1, sizeof(struct hlcache_entry));
if (entry == NULL) {
content_destroy(clone);

View File

@ -3600,8 +3600,8 @@ llcache_object_snapshot(llcache_object *object, llcache_object **snapshot)
}
if (object->num_headers > 0) {
newobj->headers = calloc(sizeof(llcache_header),
object->num_headers);
newobj->headers = calloc(object->num_headers,
sizeof(llcache_header));
if (newobj->headers == NULL) {
llcache_object_destroy(newobj);
return NSERROR_NOMEM;