diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-11-18 01:22:17 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-11-18 01:22:17 -0500 |
commit | e555117c1d1069cdb437b08e452f7b32c9db6b44 (patch) | |
tree | 45cec76dba7793478945d7fd31f2786a95afa1f5 | |
parent | 1161d1e0668f7374631e9eaf8ad28cc587ced392 (diff) | |
download | reloc-e555117c1d1069cdb437b08e452f7b32c9db6b44.tar.gz |
Fix minor compiler warnings
-rw-r--r-- | reloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)))) { |