commit cbc663090931e5d2fbea173a41c40264aa0c743c from: Stefan Sperling date: Wed Mar 18 16:13:43 2020 UTC wrap overlong lines commit - 0fd91dafe0b852573e3a6f82e986d8bebdaa25db commit + cbc663090931e5d2fbea173a41c40264aa0c743c blob - 214ec0ace43c96d050e3c6e610171a914b8671a2 blob + ea1f368608fdfb8d5773ea5ed99c3465eca26578 --- libexec/got-index-pack/got-index-pack.c +++ libexec/got-index-pack/got-index-pack.c @@ -161,8 +161,8 @@ read_packed_object(struct got_pack *pack, struct got_i size_t headerlen; const char *obj_label; - err = got_pack_parse_object_type_and_size(&obj->type, &obj->size, &obj->tslen, - pack, obj->off); + err = got_pack_parse_object_type_and_size(&obj->type, &obj->size, + &obj->tslen, pack, obj->off); if (err) return err; @@ -620,7 +620,8 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t * continue; obj = objects[i]; - if (lseek(pack->fd, obj->off + obj->tslen, SEEK_SET) == -1) { + if (lseek(pack->fd, obj->off + obj->tslen, SEEK_SET) + == -1) { err = got_error_from_errno("lseek"); goto done; } @@ -640,8 +641,8 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t * n++; if (have_ref_deltas) update_packidx(&packidx, nobj, obj); - err = got_privsep_send_index_pack_progress(ibuf, nobj, nobj, - nloose, nresolved + n); + err = got_privsep_send_index_pack_progress(ibuf, + nobj, nobj, nloose, nresolved + n); if (err) goto done; @@ -657,7 +658,8 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t * if (nloose + nresolved == nobj) { static char msg[64]; snprintf(msg, sizeof(msg), - "fix point reached too early: %d/%d/%d", nvalid, nresolved, nobj); + "fix point reached too early: %d/%d/%d", + nvalid, nresolved, nobj); err = got_error_msg(GOT_ERR_BAD_PACKFILE, msg); goto done; } @@ -668,7 +670,8 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t * if (nloose + nresolved != nobj) { static char msg[64]; snprintf(msg, sizeof(msg), - "discovered only %d of %d objects", nloose + nresolved, nobj); + "discovered only %d of %d objects", + nloose + nresolved, nobj); err = got_error_msg(GOT_ERR_BAD_PACKFILE, msg); goto done; } @@ -693,7 +696,8 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t * if (err) goto done; } - err = hwrite(idxfd, packidx.hdr.offsets, nobj * sizeof(uint32_t), &ctx); + err = hwrite(idxfd, packidx.hdr.offsets, nobj * sizeof(uint32_t), + &ctx); if (err) goto done; if (packidx.nlargeobj > 0) {