Commit e260f8ae2c54344af5cd0213dc0aafe6e2ff8721

Stefan Sperling 2022-03-22T11:55:38

fgetc() returns int, not char; fixes -Werror build on armv7

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libexec/got-read-patch/got-read-patch.c b/libexec/got-read-patch/got-read-patch.c
index c55af97..7187368 100644
--- a/libexec/got-read-patch/got-read-patch.c
+++ b/libexec/got-read-patch/got-read-patch.c
@@ -311,7 +311,7 @@ static const struct got_error *
 peek_special_line(FILE *fp, int send)
 {
 	const struct got_error *err;
-	char ch;
+	int ch;
 
 	ch = fgetc(fp);
 	if (ch != EOF && ch != '\\') {