summaryrefslogtreecommitdiff
path: root/src/lib/eldbus
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 12:42:07 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:43:59 +0000
commit64975b1e95b66b96c56eefcb3dd41bcb81b0c626 (patch)
tree3590a187554dc9424a6612c7ba37e6115b43e199 /src/lib/eldbus
parent37806b5bf9ead2cb6de6dfff2822a25c01a71d34 (diff)
eldbus- fix warning by casting through void
so eldbus does silly things like use a cb ptr with a different type of cb - very explicitly. so it casts but warnigns don't like it and assume it maybe a bug, so use void *'s so have some silence for this bit of evil.
Diffstat (limited to 'src/lib/eldbus')
-rw-r--r--src/lib/eldbus/eldbus_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eldbus/eldbus_service.c b/src/lib/eldbus/eldbus_service.c
index 39f2a29573..4c7ed640d4 100644
--- a/src/lib/eldbus/eldbus_service.c
+++ b/src/lib/eldbus/eldbus_service.c
@@ -1305,7 +1305,7 @@ _eldbus_method_call(Eldbus_Method const* method, Eldbus_Service_Interface* iface
1305{ 1305{
1306 if(method->flags & ELDBUS_METHOD_FLAG_HAS_DATA) 1306 if(method->flags & ELDBUS_METHOD_FLAG_HAS_DATA)
1307 { 1307 {
1308 Eldbus_Method_Data_Cb cb = (Eldbus_Method_Data_Cb)method->cb; 1308 Eldbus_Method_Data_Cb cb = (void *)method->cb;
1309 return cb(((Eldbus_Method2 const*)method)->data, iface, msg); 1309 return cb(((Eldbus_Method2 const*)method)->data, iface, msg);
1310 } 1310 }
1311 else 1311 else