Commit 8138f3e172dbeb6d845fda505dde9b15b85ec310

Stefan Sperling 2019-08-11T18:39:32

fprintf returns int, not size_t; from Hiltjo Posthuma

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 9b09952..1e1e30d 100644
--- a/got/got.c
+++ b/got/got.c
@@ -4366,7 +4366,7 @@ histedit_write_commit(struct got_object_id *commit_id, const char *cmdname,
 	const struct got_error *err = NULL;
 	char *logmsg = NULL, *id_str = NULL;
 	struct got_commit_object *commit = NULL;
-	size_t n;
+	int n;
 
 	err = got_object_open_as_commit(&commit, repo, commit_id);
 	if (err)