aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-07-26 22:25:51 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-07-26 22:25:51 +0200
commit2cdecfab4e695e1f48e7c302f21c46035160cae2 (patch)
tree9421f85e6ad529d392818887e4bc99e786f0cf5a /samsung-ipc
parent74e32c068d7e95275a0d237ecaf9f057e5d6f064 (diff)
downloadexternal_libsamsung-ipc-2cdecfab4e695e1f48e7c302f21c46035160cae2.zip
external_libsamsung-ipc-2cdecfab4e695e1f48e7c302f21c46035160cae2.tar.gz
external_libsamsung-ipc-2cdecfab4e695e1f48e7c302f21c46035160cae2.tar.bz2
Offset is unsigned int
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/call.c2
-rw-r--r--samsung-ipc/rfs.c9
-rw-r--r--samsung-ipc/utils.c4
3 files changed, 8 insertions, 7 deletions
diff --git a/samsung-ipc/call.c b/samsung-ipc/call.c
index 718b02e..58b0f52 100644
--- a/samsung-ipc/call.c
+++ b/samsung-ipc/call.c
@@ -65,7 +65,7 @@ struct ipc_call_list_entry *ipc_call_list_entry_extract(const void *data,
struct ipc_call_list_entry *entry = NULL;
unsigned char count;
unsigned char i;
- size_t offset;
+ unsigned int offset;
if (data == NULL)
return NULL;
diff --git a/samsung-ipc/rfs.c b/samsung-ipc/rfs.c
index 5950f30..086646c 100644
--- a/samsung-ipc/rfs.c
+++ b/samsung-ipc/rfs.c
@@ -555,7 +555,8 @@ void *ipc_nv_data_load(struct ipc_client *client)
return data;
}
-void *ipc_nv_data_read(struct ipc_client *client, size_t size, size_t offset)
+void *ipc_nv_data_read(struct ipc_client *client, size_t size,
+ unsigned int offset)
{
void *data;
char *path;
@@ -586,7 +587,7 @@ void *ipc_nv_data_read(struct ipc_client *client, size_t size, size_t offset)
}
int ipc_nv_data_write(struct ipc_client *client, const void *data, size_t size,
- size_t offset)
+ unsigned int offset)
{
char *path;
char *md5_path;
@@ -656,7 +657,7 @@ complete:
}
void *ipc_rfs_nv_read_item_response_setup(const void *data, size_t size,
- size_t offset)
+ unsigned int offset)
{
struct ipc_rfs_nv_read_item_response_header *header;
void *buffer;
@@ -678,7 +679,7 @@ void *ipc_rfs_nv_read_item_response_setup(const void *data, size_t size,
header = (struct ipc_rfs_nv_read_item_response_header *) buffer;
header->confirm = confirm;
- header->offset = (unsigned int) offset;
+ header->offset = offset;
header->length = (unsigned int) size;
if (data != NULL && size > 0) {
diff --git a/samsung-ipc/utils.c b/samsung-ipc/utils.c
index d0cc059..7bc7859 100644
--- a/samsung-ipc/utils.c
+++ b/samsung-ipc/utils.c
@@ -33,7 +33,7 @@
void *file_data_read(const char *path, size_t size, size_t chunk_size,
- size_t offset)
+ unsigned int offset)
{
void *data = NULL;
int fd = -1;
@@ -83,7 +83,7 @@ complete:
}
int file_data_write(const char *path, const void *data, size_t size,
- size_t chunk_size, size_t offset)
+ size_t chunk_size, unsigned int offset)
{
int fd = -1;
size_t count;