aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerie de Gram <j.de.gram@gmail.com>2011-10-26 17:08:20 +0200
committerJoerie de Gram <j.de.gram@gmail.com>2011-10-28 13:53:28 +0200
commitaeb7a4c4069cfbbf4f177a038e8379ef7341bd02 (patch)
tree531b69de547ea1afb584916bbd1fd21947490596
parenta38db5807753c279eba7480c0e63e0b6357fef34 (diff)
downloadexternal_libsamsung-ipc-aeb7a4c4069cfbbf4f177a038e8379ef7341bd02.zip
external_libsamsung-ipc-aeb7a4c4069cfbbf4f177a038e8379ef7341bd02.tar.gz
external_libsamsung-ipc-aeb7a4c4069cfbbf4f177a038e8379ef7341bd02.tar.bz2
fix various compilation warnings
-rw-r--r--include/radio.h2
-rw-r--r--samsung-ipc/crespo_ipc.c2
-rw-r--r--samsung-ipc/ipc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/radio.h b/include/radio.h
index 988ba5f..193a324 100644
--- a/include/radio.h
+++ b/include/radio.h
@@ -61,7 +61,7 @@ struct ipc_response {
struct ipc_client;
typedef int (*ipc_client_transport_cb)(uint8_t *data, unsigned int size, void *user_data);
-typedef int (*ipc_client_log_handler_cb)(const char *message, void *user_data);
+typedef void (*ipc_client_log_handler_cb)(const char *message, void *user_data);
struct ipc_client *ipc_client_new(int client_type);
int ipc_client_set_log_handler(struct ipc_client *client, ipc_client_log_handler_cb log_handler_cb, void *user_data);
diff --git a/samsung-ipc/crespo_ipc.c b/samsung-ipc/crespo_ipc.c
index 44bc676..45c19b7 100644
--- a/samsung-ipc/crespo_ipc.c
+++ b/samsung-ipc/crespo_ipc.c
@@ -312,7 +312,7 @@ int crespo_ipc_client_send(struct ipc_client *client, struct ipc_request *reques
modem_data.data = malloc(reqhdr.length);
memcpy(modem_data.data, &reqhdr, sizeof(struct ipc_header));
- memcpy(modem_data.data + sizeof(struct ipc_header), request->data, request->length);
+ memcpy((unsigned char *)modem_data.data + sizeof(struct ipc_header), request->data, request->length);
assert(client->write != NULL);
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index 9ef091c..3054b98 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -54,7 +54,7 @@ void ipc_client_log(struct ipc_client *client, const char *message, ...)
struct ipc_client* ipc_client_new(int client_type)
{
struct ipc_client *client;
- struct ips_ops *ops = NULL;
+ struct ipc_ops *ops = NULL;
switch (client_type)
{