aboutsummaryrefslogtreecommitdiff
path: root/src/relocation.c
diff options
context:
space:
mode:
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;