summaryrefslogtreecommitdiffstats
path: root/fcp/src/cmd_write.c
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2015-02-18 16:14:28 -0600
committerAdriana Kobylak <anoo@us.ibm.com>2015-02-18 16:14:28 -0600
commit76ce4aadee1a7a890001affed54a0fb1110b1793 (patch)
tree14a358904909e8fe0f631d414333c26de81e5042 /fcp/src/cmd_write.c
parentaa8354ef7ee6606fe32453e3eedce9af8038230a (diff)
downloadffs-76ce4aadee1a7a890001affed54a0fb1110b1793.tar.gz
ffs-76ce4aadee1a7a890001affed54a0fb1110b1793.zip
Support to compile in 64bit for Ubuntu Little Endian
Diffstat (limited to 'fcp/src/cmd_write.c')
-rw-r--r--fcp/src/cmd_write.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fcp/src/cmd_write.c b/fcp/src/cmd_write.c
index cb6938f..ec3d6db 100644
--- a/fcp/src/cmd_write.c
+++ b/fcp/src/cmd_write.c
@@ -82,12 +82,12 @@ static int __write(args_t * args, off_t offset, entry_list_t * done_list)
if (ffs->count <= 0)
return 0;
- size_t block_size;
+ uint32_t block_size;
if (__ffs_info(ffs, FFS_INFO_BLOCK_SIZE, &block_size) < 0)
return -1;
if (args->buffer != NULL) {
- size_t buffer;
+ uint32_t buffer;
if (parse_size(args->buffer, &buffer) < 0)
return -1;
if (__ffs_buffer(ffs, buffer) < 0)
@@ -108,7 +108,7 @@ static int __write(args_t * args, off_t offset, entry_list_t * done_list)
if (entry.type == FFS_TYPE_LOGICAL) {
if (args->verbose == f_VERBOSE)
fprintf(stderr, "%8llx: %s: logical (skip)\n",
- offset, full_name);
+ (long long)offset, full_name);
return 0;
}
@@ -116,7 +116,7 @@ static int __write(args_t * args, off_t offset, entry_list_t * done_list)
entry.flags & FFS_FLAGS_PROTECTED) {
if (args->verbose == f_VERBOSE)
fprintf(stderr, "%8llx: %s: protected (skip)\n",
- offset, full_name);
+ (long long)offset, full_name);
return 0;
}
@@ -135,13 +135,13 @@ static int __write(args_t * args, off_t offset, entry_list_t * done_list)
if (args->verbose == f_VERBOSE)
fprintf(stderr, "%8llx: %s: trunc size '%llx' (done)\n",
- offset, full_name, st.st_size);
+ (long long)offset, full_name, (long long)st.st_size);
}
if (entry_list_exists(done_list, &entry) == 1) {
if (args->verbose == f_VERBOSE)
fprintf(stderr, "%8llx: %s: read from '%s' (skip)\n",
- offset, full_name, in_path);
+ (long long)offset, full_name, in_path);
return 0;
}
@@ -163,7 +163,7 @@ static int __write(args_t * args, off_t offset, entry_list_t * done_list)
if (args->verbose == f_VERBOSE)
fprintf(stderr, "%8llx: %s: read from '%s' (done)\n",
- offset, full_name, in_path);
+ (long long)offset, full_name, in_path);
}
return 0;
OpenPOWER on IntegriCloud