commit - f78e04730e66f234bcae4603f743028d2d0fe2e2
commit + 1ff2107184dbd40fab4074751f009b9f4deec3de
blob - 00e10587354d492da04ebdf323d1b60c08c02e08
blob + 167e339692f7948c6333077729a3e80e96ee1cd0
--- libexec/got-fetch-pack/got-fetch-pack.c
+++ libexec/got-fetch-pack/got-fetch-pack.c
}
static int
-got_check_pack_hash(int fd, size_t sz, uint8_t *hcomp)
+check_pack_hash(int fd, size_t sz, uint8_t *hcomp)
{
SHA1_CTX ctx;
uint8_t hexpect[SHA1_DIGEST_LENGTH];
}
static int
-got_match_branch(char *br, char *pat)
+match_branch(char *br, char *pat)
{
char name[128];
}
static const struct got_error *
-got_tokenize_refline(char **tokens, char *line, int len)
+tokenize_refline(char **tokens, char *line, int len)
{
const struct got_error *err = NULL;
char *p;
err = got_error_msg(GOT_ERR_FETCH_FAILED, msg);
goto done;
}
- err = got_tokenize_refline(sp, buf, n);
+ err = tokenize_refline(sp, buf, n);
if (err)
goto done;
if (chattygit && sp[2][0] != '\0')
is_firstpkt = 0;
if (strstr(sp[1], "^{}"))
continue;
- if (fetchbranch && !got_match_branch(sp[1], fetchbranch))
+ if (fetchbranch && !match_branch(sp[1], fetchbranch))
continue;
if (refsz == nref + 1) {
refsz *= 2;
err = got_error_from_errno("lseek");
goto done;
}
- if (got_check_pack_hash(packfd, packsz, packid->sha1) == -1)
+ if (check_pack_hash(packfd, packsz, packid->sha1) == -1)
err = got_error(GOT_ERR_BAD_PACKFILE);
done:
TAILQ_FOREACH(pe, &symrefs, entry) {