aboutsummaryrefslogtreecommitdiffstats
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
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>
-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 {