sys/dvb/: Fix some warnings.
authorTim-Philipp Müller <tim@centricular.net>
Wed, 17 Oct 2007 10:33:43 +0000 (10:33 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 17 Oct 2007 10:33:43 +0000 (10:33 +0000)
Original commit message from CVS:
* sys/dvb/camapplication.c:
* sys/dvb/camresourcemanager.c:
Fix some warnings.

ChangeLog
sys/dvb/camapplication.c
sys/dvb/camresourcemanager.c

index 002c232a124797bd90e64d5dd2dce698108cf6a2..6a0eb3dd9a5f60c0898130f8b5572b68e7ba43c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
+2007-10-17  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * sys/dvb/camapplication.c:
+       * sys/dvb/camresourcemanager.c:
+         Fix some warnings.
+
 2007-10-16  Thijs Vermeir  <thijsvermeir@gmail.com>
 
        * gst/librfb/rfbdecoder.c:
-               Add the set encodings client message
+         Add the set encodings client message
 
 2007-10-16  Thijs Vermeir  <thijsvermeir@gmail.com>
 
@@ -11,7 +17,7 @@
        * gst/librfb/rfbbytestream.h:
        * gst/librfb/rfbdecoder.c:
        * gst/librfb/rfbdecoder.h:
-               remove the rfbbytestream dead code
+         Remove the rfbbytestream dead code
 
 2007-10-16  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
 
index 03f9e552825e623ec5aa2317ecc61e246b5fa8b6..cbc479acbcd9c761e802086f02a36a1ae9fb7ed3 100644 (file)
@@ -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 */
index 8b7ef3b4af65deebe37fcff6a4faf9fa2edc1a20..5b8c6c18d96f7d69cda98bd3b10f531e693e9acc 100644 (file)
@@ -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;
   }