[hipl-commit] [trunk] Rev 4561: firewall: fix shadowing in the cache port.

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

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

Log:
  firewall: fix shadowing in the cache port.

Modified:
  M  firewall/cache.c

=== modified file 'firewall/cache.c'
--- firewall/cache.c    2010-04-15 20:47:19 +0000
+++ firewall/cache.c    2010-05-18 12:48:55 +0000
@@ -279,11 +279,10 @@
 
 /**
  * Uninitialize cache database
- *
- * @param exit 1 if the firewall is exiting and the hashtable should be
- *               freed or zero otherwise
+ * @param exiting   1 if the firewall is exiting and the hashtable should be
+ *                  freed or zero otherwise
  */
-void hip_firewall_cache_delete_hldb(int exit)
+void hip_firewall_cache_delete_hldb(int exiting)
 {
     int i;
     firewall_cache_hl_t *this = NULL;
@@ -305,7 +304,7 @@
      * we handle it in firewall_exit(). */
 
     HIP_UNLOCK_HT(&firewall_cache_db);
-    if (exit)
+    if (exiting)
         hip_ht_uninit(firewall_cache_db);
     HIP_DEBUG("End hldbdb delete\n");
 }

Other related posts:

  • » [hipl-commit] [trunk] Rev 4561: firewall: fix shadowing in the cache port. - Mircea Gherzan