Commit cd628e99c08eeaced7aae9654bb9d42c54b7dd8a

Stefan Sperling 2019-05-28T14:46:04

mark const variables as such

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 98337ea..8b10e2b 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1251,7 +1251,7 @@ cmd_diff(int argc, char *argv[])
 	struct got_worktree *worktree = NULL;
 	char *cwd = NULL, *repo_path = NULL;
 	struct got_object_id *id1 = NULL, *id2 = NULL;
-	char *id_str1 = NULL, *id_str2 = NULL;
+	const char *id_str1 = NULL, *id_str2 = NULL;
 	int type1, type2;
 	int diff_context = 3, ch;
 	const char *errstr;