[hipl-commit] [trunk] Rev 4565: firewall: fix a shadowing issue in the main file.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 18 May 2010 16:49:50 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 18/05/2010 at 16:49:50
Revision: 4565
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  firewall: fix a shadowing issue in the main file.

Modified:
  M  firewall/firewall.c

=== modified file 'firewall/firewall.c'
--- firewall/firewall.c 2010-05-18 11:22:51 +0000
+++ firewall/firewall.c 2010-05-18 13:46:12 +0000
@@ -889,14 +889,14 @@
  * @return 1 if HITs match and 0 otherwise when boolean is 1. The return value 
is reversed when the boolean
  *         value is 0.
  */
-static int match_hit(const struct in6_addr match_hit,
+static int match_hit(const struct in6_addr matching_hit,
                      const struct in6_addr packet_hit,
                      const int boolean)
 {
-    int i = IN6_ARE_ADDR_EQUAL(&match_hit, &packet_hit);
+    int i = IN6_ARE_ADDR_EQUAL(&matching_hit, &packet_hit);
 
     HIP_DEBUG("match_hit: hit1: %s hit2: %s bool: %d match: %d\n",
-              addr_to_numeric(&match_hit), addr_to_numeric(&packet_hit),
+              addr_to_numeric(&matching_hit), addr_to_numeric(&packet_hit),
               boolean, i);
     if (boolean) {
         return i;

Other related posts:

  • » [hipl-commit] [trunk] Rev 4565: firewall: fix a shadowing issue in the main file. - Mircea Gherzan