summaryrefslogtreecommitdiff
path: root/ubi-utils/src/reader.c
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@gmail.com>2007-02-12 20:41:17 -0600
committerJosh Boyer <jwboyer@gmail.com>2007-02-12 20:41:17 -0600
commit9fe86e65fb6bd77a02955d07d6f336ace4984e2d (patch)
treec0eaa1ed72b8e39bcefe419c481618eb8b5d5b1f /ubi-utils/src/reader.c
parent5327be2927984d4ba365c76a5f4b22839f6e680b (diff)
Fix several issues when compiling for 64bit systems
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
Diffstat (limited to 'ubi-utils/src/reader.c')
-rw-r--r--ubi-utils/src/reader.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ubi-utils/src/reader.c b/ubi-utils/src/reader.c
index 975caa1..7935a15 100644
--- a/ubi-utils/src/reader.c
+++ b/ubi-utils/src/reader.c
@@ -178,7 +178,8 @@ read_pfi_raw(pfi_header pfi_hd, FILE* fp_pfi __unused, pfi_raw_t* pfi_raw,
}
rc = bootenv_list_to_num_vector(raw_start_list,
- &(res->starts_size), &(res->starts));
+ (void *) &(res->starts_size),
+ &(res->starts));
if (rc != 0) {
EBUF_PFI("Cannot create numeric value array: %s", tmp_str);
goto err;
@@ -246,7 +247,7 @@ read_pfi_ubi(pfi_header pfi_hd, FILE* fp_pfi __unused, pfi_ubi_t* pfi_ubi,
goto err;
}
- rc = bootenv_list_to_num_vector(ubi_id_list, &(res->ids_size),
+ rc = bootenv_list_to_num_vector(ubi_id_list, (void *) &(res->ids_size),
&(res->ids));
if (rc != 0) {
EBUF_PFI("Cannot create numeric value array: %s", tmp_str);
@@ -298,7 +299,7 @@ read_pfi_ubi(pfi_header pfi_hd, FILE* fp_pfi __unused, pfi_ubi_t* pfi_ubi,
EBUF_PFI("Cannot translate PFI value: %s", tmp_str);
goto err;
}
- rc = bootenv_list_to_vector(ubi_name_list, &(res->names_size),
+ rc = bootenv_list_to_vector(ubi_name_list, (void *) &(res->names_size),
&(tmp_names));
if (rc != 0) {
EBUF_PFI("Cannot create string array: %s", tmp_str);