commit 812c68380e543d8814df8169aa1fb47f70e19378 from: Stefan Sperling via: Thomas Adam date: Fri Oct 15 19:22:03 2021 UTC fix wrong function names in error messages from got-index-pack.c commit - 001a95cdb07bcbee6b43f13cb196f7dbf825013e commit + 812c68380e543d8814df8169aa1fb47f70e19378 blob - 01ca110a1eb4d1461ce37f77a21391e3d8322e9a blob + 79c1220f7c69501d6047d937f5c64df6e4dfae7d --- libexec/got-index-pack/got-index-pack.c +++ libexec/got-index-pack/got-index-pack.c @@ -675,7 +675,7 @@ index_pack(struct got_pack *pack, int idxfd, FILE *tmp memset(&packidx, 0, sizeof(packidx)); packidx.hdr.magic = malloc(sizeof(uint32_t)); if (packidx.hdr.magic == NULL) - return got_error_from_errno("calloc"); + return got_error_from_errno("malloc"); *packidx.hdr.magic = htobe32(GOT_PACKIDX_V2_MAGIC); packidx.hdr.version = malloc(sizeof(uint32_t)); if (packidx.hdr.version == NULL) { @@ -1095,7 +1095,7 @@ done: for (i = 0; i < nitems(tmpfiles); i++) { if (tmpfiles[i] != NULL && fclose(tmpfiles[i]) == EOF && err == NULL) - err = got_error_from_errno("close"); + err = got_error_from_errno("fclose"); } if (err == NULL)