diff options
author | rapperskull <rapper.skull@hotmail.it> | 2022-11-10 20:38:34 +0100 |
---|---|---|
committer | rapperskull <rapper.skull@hotmail.it> | 2022-11-10 20:42:10 +0100 |
commit | 9cc8a29e3362a76fc52cc56c93d8ed1a39baa457 (patch) | |
tree | da43b8504e0b108bff3e1da30371a782b0fdc02a /libsparse | |
parent | 7e17f702e410e62fb8ea1cac9567ad70c0678bd3 (diff) | |
download | core-9cc8a29e3362a76fc52cc56c93d8ed1a39baa457.tar.gz |
Fix clang error about incompatible assignment in simg2simg.cpp
Change-Id: Ibb5c9431e51525c083e2981979e831d7f0b8ea1d
Diffstat (limited to 'libsparse')
-rw-r--r-- | libsparse/simg2simg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsparse/simg2simg.cpp b/libsparse/simg2simg.cpp index a2c296e89..138173b3d 100644 --- a/libsparse/simg2simg.cpp +++ b/libsparse/simg2simg.cpp @@ -72,7 +72,7 @@ int main(int argc, char* argv[]) { exit(-1); } - out_s = calloc(sizeof(struct sparse_file*), files); + out_s = (struct sparse_file**)calloc(sizeof(struct sparse_file*), files); if (!out_s) { fprintf(stderr, "Failed to allocate sparse file array\n"); exit(-1); |