aboutsummaryrefslogtreecommitdiff
path: root/reloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'reloc.c')
-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)))) {