kernel: make some compiler happy again (#279)

https://github.com/tiann/KernelSU/commit/ae92de667d509412f593d63f4225360c7c40286b
still not fix #252
This commit is contained in:
rhjdvsgsgks
2023-02-26 14:08:50 +00:00
committed by GitHub
parent f64614b189
commit 1cf309584a
+3 -3
View File
@@ -93,7 +93,7 @@ check_v2_signature(char *path, unsigned expected_size, unsigned expected_hash)
#if 0
int hash = 1;
signed char c;
for (unsigned i = 0; i < size4; ++i) {
for (i = 0; i < size4; ++i) {
ksu_kernel_read_compat(fp, &c, 0x1, &pos);
hash = 31 * hash + c;
}
@@ -103,7 +103,7 @@ check_v2_signature(char *path, unsigned expected_size, unsigned expected_hash)
if (size4 == expected_size) {
int hash = 1;
signed char c;
for (unsigned i = 0; i < size4; ++i) {
for (i = 0; i < size4; ++i) {
ksu_kernel_read_compat(fp, &c, 0x1, &pos);
hash = 31 * hash + c;
}
@@ -177,4 +177,4 @@ int is_manager_apk(char *path)
return check_v2_signature(path, EXPECTED_SIZE, EXPECTED_HASH);
}
#endif
#endif