commit 07965a0dfc49b585f5d2d6c2f8f645dfe3ef0d8c from: Stefan Sperling date: Fri Oct 15 17:08:54 2021 UTC fix wrong function names in error messages from got-index-pack.c commit - 802c0f044067c5393fb50a48a6d5be908e286042 commit + 07965a0dfc49b585f5d2d6c2f8f645dfe3ef0d8c blob - 6ba4490d952e266de433edbadd35609faaeff1bf blob + 5c97abbfa18aa695ecad63480898a59770e74e9f --- libexec/got-index-pack/got-index-pack.c +++ libexec/got-index-pack/got-index-pack.c @@ -677,7 +677,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) { @@ -1097,7 +1097,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)