aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-02-13 19:22:15 +0100
committerPaul Kocialkowski <contact@paulk.fr>2014-02-13 19:22:41 +0100
commit60e94298d83d1180a49e668ed85bb2bfa0e38095 (patch)
treebd0dca02f78182f316ca496a1cc5c63ac0f91036 /samsung-ipc
parente306f8923ecf41d9cdd65f16ff7f0715db447306 (diff)
downloadexternal_libsamsung-ipc-60e94298d83d1180a49e668ed85bb2bfa0e38095.zip
external_libsamsung-ipc-60e94298d83d1180a49e668ed85bb2bfa0e38095.tar.gz
external_libsamsung-ipc-60e94298d83d1180a49e668ed85bb2bfa0e38095.tar.bz2
rfs: Proper type for size definitions
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
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 {