commit - 6fd11751dcadfc1e752c54a1f7880b006e6b3ae8
commit + 0b48ab235fb26119b3d793c4dda90f5d4056edd0
blob - 53f6829b40e18097a1f4813c3ffc8cba09178e6d
blob + ece75bf75da8cd3dda6abc9cee2eaf2c837bdf09
--- lib/pack.c
+++ lib/pack.c
if (err)
goto done;
- SHA1Update(&ctx, (uint8_t *)p->hdr.fanout_table, sizeof(p->hdr.fanout_table));
+ SHA1Update(&ctx, (uint8_t *)p->hdr.fanout_table,
+ sizeof(p->hdr.fanout_table));
nobj = betoh32(p->hdr.fanout_table[0xff]);
goto done;
}
- SHA1Update(&ctx, (uint8_t *)p->hdr.offsets, nobj * sizeof(*p->hdr.offsets));
+ SHA1Update(&ctx, (uint8_t *)p->hdr.offsets,
+ nobj * sizeof(*p->hdr.offsets));
/* Large file offsets are contained only in files > 2GB. */
if (packfile_size <= 0x80000000)
nobj * sizeof(*p->hdr.offsets));
if (p->hdr.large_offsets) {
- p->hdr.large_offsets = calloc(nobj, sizeof(*p->hdr.large_offsets));
+ p->hdr.large_offsets = calloc(nobj,
+ sizeof(*p->hdr.large_offsets));
if (p->hdr.large_offsets == NULL)
goto err;
memcpy(p->hdr.large_offsets, packidx->hdr.large_offsets,
return got_error_from_errno();
/* Copy up to and excluding ".idx". */
- strncpy(*path_packfile, packidx->path_packidx, size - strlen(".idx") - 2);
+ strncpy(*path_packfile, packidx->path_packidx,
+ size - strlen(".idx") - 2);
if (strlcat(*path_packfile, GOT_PACKFILE_SUFFIX, size) >= size)
return got_error(GOT_ERR_NO_SPACE);
err = got_inflate_to_file_fd(&base_len,
pack->fd, base_file);
else {
- err = got_inflate_to_mem_fd(&base_buf, &base_len,
- pack->fd);
+ err = got_inflate_to_mem_fd(&base_buf,
+ &base_len, pack->fd);
if (base_len < max_size) {
uint8_t *p;
p = reallocarray(base_buf, 1, max_size);