aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/ipc.c8
-rw-r--r--samsung-ipc/ipc.h4
2 files changed, 6 insertions, 6 deletions
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 {