diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-30 13:00:29 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-30 13:00:29 -0500 |
commit | d0e254663e64e40b676644038a9d7c95a2f25116 (patch) | |
tree | 193b9d0f5b58436b2ecbcb4762327c8560831a2b /src/relocation.c | |
parent | 4595ada2f69b42670c85a63c7d2344af63f2afe7 (diff) | |
download | spmc-d0e254663e64e40b676644038a9d7c95a2f25116.tar.gz |
Fix inane compiler warnings
* fix rpath_set
* add rpath_autoset
* add internal command "rpath_set"
Diffstat (limited to 'src/relocation.c')
-rw-r--r-- | src/relocation.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |