Commit a0eb853d32cc94d03606c9a395ba1d462ef02585

Stefan Sperling 2018-12-29T15:12:23

make checkout status char unsigned

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)
 {
 }