[hipl-commit] [trunk] Rev 3834: Declare dst_ip variable closer to where it is being used.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Sun, 7 Mar 2010 17:32:03 +0200

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: Sun Mar 07 16:31:01 2010 +0100
Revision: 3834
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Declare dst_ip variable closer to where it is being used.
  This avoids an unused variable warning when rvs is disabled.

Modified:
  M  hipd/user.c

=== modified file 'hipd/user.c'
--- hipd/user.c 2010-03-07 11:20:52 +0000
+++ hipd/user.c 2010-03-07 15:31:01 +0000
@@ -46,7 +46,6 @@
 int hip_handle_user_msg(hip_common_t *msg, struct sockaddr_in6 *src)
 {
     hip_hit_t *src_hit           = NULL, *dst_hit = NULL;
-    in6_addr_t *dst_ip           = NULL;
     hip_ha_t *entry              = NULL;
     int err                      = 0, msg_type = 0, n = 0, len = 0, reti = 0;
     int access_ok                = 0, is_root = 0;
@@ -568,6 +567,7 @@
         struct hip_reg_request *reg_req    = NULL;
         hip_pending_request_t *pending_req = NULL;
         uint8_t *reg_types                 = NULL;
+        in6_addr_t *dst_ip                 = NULL;
         int i                              = 0, type_count = 0;
         int opp_mode                       = 0;
         int add_to_global                  = 0;

Other related posts:

  • » [hipl-commit] [trunk] Rev 3834: Declare dst_ip variable closer to where it is being used. - Diego Biurrun