aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-11-18 01:22:17 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-11-18 01:22:17 -0500
commite555117c1d1069cdb437b08e452f7b32c9db6b44 (patch)
tree45cec76dba7793478945d7fd31f2786a95afa1f5
parent1161d1e0668f7374631e9eaf8ad28cc587ced392 (diff)
downloadreloc-e555117c1d1069cdb437b08e452f7b32c9db6b44.tar.gz
Fix minor compiler warnings
-rw-r--r--reloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/reloc.c b/reloc.c
index c08f1de..1193a1e 100644
--- a/reloc.c
+++ b/reloc.c
@@ -7,7 +7,7 @@ RelocMatch *reloc_match(char *haystack, const char *needle) {
RelocMatch *match = NULL;
// Search the needle in the data
- if (!(memcmp(data, pattern, pattern_size))) {
+ if (!memcmp(data, pattern, pattern_size)) {
if (!(match = (RelocMatch *)calloc(1, sizeof(RelocMatch)))) {
reloc_error = RELOC_ENOMEM;
free(pattern);
@@ -42,7 +42,7 @@ RelocData *reloc_read(const char *filename) {
// Determine file size
fseek(fp, 0, SEEK_END);
- size = ftell(fp);
+ size = (size_t)ftell(fp);
rewind(fp);
if (!(data = (char *)calloc(size + 1, sizeof(char)))) {