From d0e254663e64e40b676644038a9d7c95a2f25116 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 30 Dec 2019 13:00:29 -0500 Subject: Fix inane compiler warnings * fix rpath_set * add rpath_autoset * add internal command "rpath_set" --- src/relocation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/relocation.c') diff --git a/src/relocation.c b/src/relocation.c index a1c0056..9d627e4 100644 --- a/src/relocation.c +++ b/src/relocation.c @@ -160,7 +160,7 @@ RelocationEntry **prefixes_read(const char *filename) { if (!entry) { return NULL; } - for (int i = 0; i < record_count; i++) { + for (size_t i = 0; i < record_count; i++) { entry[i] = (RelocationEntry *) calloc(1, sizeof(RelocationEntry)); if (!entry[i]) { return NULL; @@ -259,7 +259,7 @@ int prefixes_write(const char *output_file, int mode, char **prefix, const char fprintf(SYSERROR); return -1; } - for (int i = 0; i < fsdata->files_length; i++) { + for (size_t i = 0; i < fsdata->files_length; i++) { for (int p = 0; prefix[p] != NULL; p++) { if (find_in_file(fsdata->files[i], prefix[p]) == 0) { int proceed = 0; -- cgit