aboutsummaryrefslogtreecommitdiffstats
path: root/libsparse/sparse_crc32.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-04-24 23:07:49 -0700
committerColin Cross <ccross@android.com>2012-07-09 22:09:37 -0700
commitb55dceea986ab24f8b836b5116b389ed619c816e (patch)
treeaa4f4ed6384931ec362c70eca7b25a7cb8dab450 /libsparse/sparse_crc32.h
parent411619e921904b896eddae81c086c1f687c8304d (diff)
downloadsystem_core-b55dceea986ab24f8b836b5116b389ed619c816e.zip
system_core-b55dceea986ab24f8b836b5116b389ed619c816e.tar.gz
system_core-b55dceea986ab24f8b836b5116b389ed619c816e.tar.bz2
libsparse: cleanups
Move block loops into sparse.c with iterator helpers in backed_block.c. Simplify chunk writing by moving skip chunk calls from output_file.c to sparse.c. Rename variables to be consistent with new naming. Remove use of u8, u32, u64. Change-Id: Ic138ad58bef9f96239266ccee12ee83ea285e7eb
Diffstat (limited to 'libsparse/sparse_crc32.h')
-rw-r--r--libsparse/sparse_crc32.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsparse/sparse_crc32.h b/libsparse/sparse_crc32.h
index 21625ba..cad8a86 100644
--- a/libsparse/sparse_crc32.h
+++ b/libsparse/sparse_crc32.h
@@ -14,5 +14,7 @@
* limitations under the License.
*/
-u32 sparse_crc32(u32 crc, const void *buf, size_t size);
+#include <stdint.h>
+
+uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size);