aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/samsung-ipc.h4
-rw-r--r--samsung-ipc/ipc.c8
-rw-r--r--samsung-ipc/ipc.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h
index f0d7eba..13370c8 100644
--- a/include/samsung-ipc.h
+++ b/include/samsung-ipc.h
@@ -113,8 +113,8 @@ char *ipc_client_nv_data_md5_path(struct ipc_client *client);
char *ipc_client_nv_data_backup_path(struct ipc_client *client);
char *ipc_client_nv_data_backup_md5_path(struct ipc_client *client);
char *ipc_client_nv_data_secret(struct ipc_client *client);
-int ipc_client_nv_data_size(struct ipc_client *client);
-int ipc_client_nv_data_chunk_size(struct ipc_client *client);
+size_t ipc_client_nv_data_size(struct ipc_client *client);
+size_t ipc_client_nv_data_chunk_size(struct ipc_client *client);
const char *ipc_response_type_to_str(int type);
const char *ipc_request_type_to_str(int type);
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index 553880f..86f4291 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -494,22 +494,22 @@ char *ipc_client_nv_data_secret(struct ipc_client *client)
return client->nv_data_specs->nv_data_secret;
}
-int ipc_client_nv_data_size(struct ipc_client *client)
+size_t ipc_client_nv_data_size(struct ipc_client *client)
{
if (client == NULL ||
client->nv_data_specs == NULL ||
client->nv_data_specs->nv_data_size == 0)
- return -1;
+ return 0;
return client->nv_data_specs->nv_data_size;
}
-int ipc_client_nv_data_chunk_size(struct ipc_client *client)
+size_t ipc_client_nv_data_chunk_size(struct ipc_client *client)
{
if (client == NULL ||
client->nv_data_specs == NULL ||
client->nv_data_specs->nv_data_chunk_size == 0)
- return -1;
+ return 0;
return client->nv_data_specs->nv_data_chunk_size;
}
diff --git a/samsung-ipc/ipc.h b/samsung-ipc/ipc.h
index 0017994..5870cdd 100644
--- a/samsung-ipc/ipc.h
+++ b/samsung-ipc/ipc.h
@@ -74,8 +74,8 @@ struct ipc_nv_data_specs {
char *nv_data_backup_path;
char *nv_data_backup_md5_path;
char *nv_data_secret;
- int nv_data_size;
- int nv_data_chunk_size;
+ size_t nv_data_size;
+ size_t nv_data_chunk_size;
};
struct ipc_client {