commit - 25783624d6d0848cf127e112e4b7648265a35ca4
commit + 23b19d00d9aa2815c3e8eaa76bf67cf5b54fe4e5
blob - 8ca7884bfbdf28f02f05c54fa74ff4c901619efc
blob + 349b0aa7642b2ac036100ff8f9e3ecfedcc5027d
--- lib/fileindex.c
+++ lib/fileindex.c
FILE *outfile)
{
const struct got_error *err;
- size_t n, len, pad;
+ size_t n;
err = write_fileindex_val64(ctx, entry->ctime_sec, outfile);
if (err)
blob - 78b75a9cb1e13a14d285c5a07338fb4f92220d0f
blob + 1273d61371696cd7134c2bd6c2b3f3e6fa82946a
--- lib/worktree.c
+++ lib/worktree.c
{
const struct got_error *err = NULL;
char *path_got;
- char *refstr = NULL;
char *formatstr = NULL;
char *path_lock = NULL;
int version, fd = -1;
{
const struct got_error *err = NULL;
char *abspath;
- size_t len;
if (asprintf(&abspath, "%s/%s", worktree->root_path,
apply_path_prefix(worktree, path)) == -1)
blob - 11419282913ae660313cf2d565598eb9c6a37c4c
blob + 84ee710753ca1f21948d16f4562723d4f880a12b
--- regress/worktree/worktree_test.c
+++ regress/worktree/worktree_test.c
read_meta_file(char **content, const char *path)
{
FILE *f;
- size_t n;
size_t len;
const char delim[3] = {'\0', '\0', '\0'};
int ret = 0;
struct got_repository *repo = NULL;
char worktree_path[PATH_MAX];
char *gotpath = NULL;
- char *path;
int ok = 0;
- FILE *f;
err = got_repo_open(&repo, repo_path);
if (err != NULL || repo == NULL)
int test_ok = 0, failure = 0;
const char *repo_path;
int ch;
- int vflag = 0;
while ((ch = getopt(argc, argv, "v")) != -1) {
switch (ch) {