make checkout status char unsigned
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/got/got.c b/got/got.c
index b873e79..238a09f 100644
--- a/got/got.c
+++ b/got/got.c
@@ -178,7 +178,7 @@ usage_checkout(void)
}
static void
-checkout_progress(void *arg, char status, const char *path)
+checkout_progress(void *arg, unsigned char status, const char *path)
{
char *worktree_path = arg;
diff --git a/include/got_worktree.h b/include/got_worktree.h
index 3d89816..72da6f6 100644
--- a/include/got_worktree.h
+++ b/include/got_worktree.h
@@ -49,7 +49,7 @@ char *got_worktree_get_repo_path(struct got_worktree *);
char *got_worktree_get_head_ref_name(struct got_worktree *);
/* A callback function which is invoked when a path is checked out. */
-typedef void (*got_worktree_checkout_cb)(void *, char, const char *);
+typedef void (*got_worktree_checkout_cb)(void *, unsigned char, const char *);
/* A callback function which is invoked at cancellation points.
* May return GOT_ERR_CANCELLED to abort the runing operation. */
diff --git a/regress/worktree/worktree_test.c b/regress/worktree/worktree_test.c
index 61265ac..efd9725 100644
--- a/regress/worktree/worktree_test.c
+++ b/regress/worktree/worktree_test.c
@@ -305,7 +305,7 @@ done:
}
static void
-progress_cb(void *arg, char status, const char *path)
+progress_cb(void *arg, unsigned char status, const char *path)
{
}