diff options
-rw-r--r-- | include/rfs.h | 7 | ||||
-rw-r--r-- | include/samsung-ipc.h | 4 | ||||
-rw-r--r-- | samsung-ipc/call.c | 2 | ||||
-rw-r--r-- | samsung-ipc/rfs.c | 9 | ||||
-rw-r--r-- | samsung-ipc/utils.c | 4 |
5 files changed, 14 insertions, 12 deletions
diff --git a/include/rfs.h b/include/rfs.h index acfd018..daa3f61 100644 --- a/include/rfs.h +++ b/include/rfs.h @@ -70,11 +70,12 @@ int ipc_nv_data_backup_check(struct ipc_client *client); int ipc_nv_data_backup(struct ipc_client *client); int ipc_nv_data_restore(struct ipc_client *client); void *ipc_nv_data_load(struct ipc_client *client); -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); int ipc_nv_data_write(struct ipc_client *client, const void *data, size_t size, - size_t offset); + unsigned int offset); void *ipc_rfs_nv_read_item_response_setup(const void *data, size_t size, - size_t offset); + unsigned int offset); #endif diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h index 3aa6808..91300da 100644 --- a/include/samsung-ipc.h +++ b/include/samsung-ipc.h @@ -130,9 +130,9 @@ int ipc_rfs_message_setup(const struct ipc_rfs_header *header, struct ipc_message *message); void *file_data_read(const char *path, size_t size, size_t chunk_size, - size_t offset); + unsigned int offset); 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 network_iface_up(const char *iface, int domain, int type); int network_iface_down(const char *iface, int domain, int type); int sysfs_value_read(const char *path); 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; |