summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordan Markuš <gordan.markus@pelagicore.com>2017-05-18 09:31:10 +0200
committerChristoph Lipka <clipka@users.noreply.github.com>2017-05-18 13:01:10 +0530
commit3b6d7d95d91683720f353ce0c72f513b1414fcda (patch)
tree64c3e9bcc4c38dfcd8f31547e0ed2c2540301059
parentef7f34f8b25308528583ed746e24d59b0d774fc3 (diff)
downloadDLT-daemon-3b6d7d95d91683720f353ce0c72f513b1414fcda.tar.gz
dlt_daemon_connection_types: fix build warnings (#14)
dlt-daemon/src/daemon/dlt_daemon_event_handler.c: In function ‘dlt_daemon_handle_event’: dlt-daemon/src/daemon/dlt_daemon_event_handler.c:131:30: waring: cast from pointer to integer of different size [-Wpointer-to-int-cast] DltConnectionId id = (DltConnectionId)ev->data.ptr; ^ dlt-daemon/src/daemon/dlt_daemon_event_handler.c: In function ‘dlt_connection_check_activate’: dlt-daemon/src/daemon/dlt_daemon_event_handler.c:381:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ev.data.ptr = (void *)con->id; ^ Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com>
-rw-r--r--src/daemon/dlt_daemon_connection_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_connection_types.h b/src/daemon/dlt_daemon_connection_types.h
index 8774378..1887acc 100644
--- a/src/daemon/dlt_daemon_connection_types.h
+++ b/src/daemon/dlt_daemon_connection_types.h
@@ -67,7 +67,7 @@ typedef enum {
#define DLT_CON_MASK_GATEWAY_TIMER (1 << DLT_CONNECTION_GATEWAY_TIMER)
#define DLT_CON_MASK_ALL (0xffff)
-typedef unsigned int DltConnectionId;
+typedef uintptr_t DltConnectionId;
/* TODO: squash the DltReceiver structure in there
* and remove any other duplicates of FDs