[hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5353: Do not redundantly cast variable to its own type.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Tue, 04 Jan 2011 12:17:28 -0000

------------------------------------------------------------
revno: 5353
committer: Diego Biurrun <diego@xxxxxxxxxx>
branch nick: hipl
timestamp: Tue 2011-01-04 13:15:20 +0100
message:
  Do not redundantly cast variable to its own type.
modified:
  lib/core/builder.c


--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk

Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to 
https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'lib/core/builder.c'
--- lib/core/builder.c  2011-01-04 12:11:37 +0000
+++ lib/core/builder.c  2011-01-04 12:15:20 +0000
@@ -1591,7 +1591,7 @@
 {
     struct hip_tlv_common param;
     hip_set_param_type(&param, param_type);
-    hip_set_param_contents_len((struct hip_tlv_common *) &param, 
contents_size);
+    hip_set_param_contents_len(&param, contents_size);
     return hip_build_generic_param(msg,
                                    &param,
                                    sizeof(struct hip_tlv_common),

Other related posts:

  • » [hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5353: Do not redundantly cast variable to its own type. - noreply