aboutsummaryrefslogtreecommitdiff
path: root/src/relocation.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-12-30 13:00:29 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-12-30 13:00:29 -0500
commitd0e254663e64e40b676644038a9d7c95a2f25116 (patch)
tree193b9d0f5b58436b2ecbcb4762327c8560831a2b /src/relocation.c
parent4595ada2f69b42670c85a63c7d2344af63f2afe7 (diff)
downloadspmc-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.c4
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;