summaryrefslogtreecommitdiffstats
path: root/applypatch/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'applypatch/utils.h')
-rw-r--r--applypatch/utils.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/applypatch/utils.h b/applypatch/utils.h
index bc97f1720..c7c8e90e2 100644
--- a/applypatch/utils.h
+++ b/applypatch/utils.h
@@ -17,14 +17,15 @@
#ifndef _BUILD_TOOLS_APPLYPATCH_UTILS_H
#define _BUILD_TOOLS_APPLYPATCH_UTILS_H
+#include <inttypes.h>
#include <stdio.h>
// Read and write little-endian values of various sizes.
void Write4(int value, FILE* f);
-void Write8(long long value, FILE* f);
-int Read2(void* p);
-int Read4(void* p);
-long long Read8(void* p);
+void Write8(int64_t value, FILE* f);
+int Read2(const void* p);
+int Read4(const void* p);
+int64_t Read8(const void* p);
#endif // _BUILD_TOOLS_APPLYPATCH_UTILS_H