From 2ae4242d8a598abe670a1bbe4fef0f8eaee9ac39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 17 Oct 2007 10:33:43 +0000 Subject: sys/dvb/: Fix some warnings. Original commit message from CVS: * sys/dvb/camapplication.c: * sys/dvb/camresourcemanager.c: Fix some warnings. --- sys/dvb/camapplication.c | 2 +- sys/dvb/camresourcemanager.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dvb/camapplication.c b/sys/dvb/camapplication.c index 03f9e552..cbc479ac 100644 --- a/sys/dvb/camapplication.c +++ b/sys/dvb/camapplication.c @@ -35,7 +35,7 @@ static CamReturn session_data_cb (CamSL * sl, static guint resource_id_hash (gconstpointer key) { - guint resource_id = (guint) key; + guint resource_id = GPOINTER_TO_UINT (key); if (!CAM_AL_RESOURCE_ID_IS_PUBLIC (resource_id)) { /* private identifier, leave it as is */ diff --git a/sys/dvb/camresourcemanager.c b/sys/dvb/camresourcemanager.c index 8b7ef3b4..5b8c6c18 100644 --- a/sys/dvb/camresourcemanager.c +++ b/sys/dvb/camresourcemanager.c @@ -127,7 +127,7 @@ send_profile_reply (CamResourceManager * mgr, CamSLSession * session) apdu_body = buffer + offset; for (walk = resource_ids; walk != NULL; walk = walk->next) { - GST_WRITE_UINT32_BE (apdu_body, walk->data); + GST_WRITE_UINT32_BE (apdu_body, GPOINTER_TO_UINT (walk->data)); apdu_body += 4; } -- cgit v1.2.1