[hipl-commit] [trunk] Rev 4718: heartbeat: mark unused parameters as such.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 8 Jun 2010 23:07:13 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 08/06/2010 at 23:07:13
Revision: 4718
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  heartbeat: mark unused parameters as such.

Modified:
  M  modules/heartbeat/hipd/heartbeat.c

=== modified file 'modules/heartbeat/hipd/heartbeat.c'
--- modules/heartbeat/hipd/heartbeat.c  2010-05-31 09:44:40 +0000
+++ modules/heartbeat/hipd/heartbeat.c  2010-06-08 20:06:12 +0000
@@ -43,6 +43,7 @@
 #include "hipd/init.h"
 #include "hipd/hip_socket.h"
 #include "hipd/pkt_handling.h"
+#include "lib/core/common_defines.h"
 #include "lib/core/statistics.h"
 
 #define HIP_HEARTBEAT_INTERVAL 20
@@ -325,7 +326,7 @@
     return err;
 }
 
-static int hip_heartbeat_handle_icmp_sock(struct hip_packet_context *ctx)
+static int hip_heartbeat_handle_icmp_sock(UNUSED struct hip_packet_context 
*ctx)
 {
     int err = 0;
 
@@ -379,19 +380,10 @@
     return 0;
 }
 
-static int hip_heartbeat_handle_usr_msg(hip_common_t *msg,
-                                        struct sockaddr_in6 *src)
+static int hip_heartbeat_handle_usr_msg(UNUSED hip_common_t *msg,
+                                        UNUSED struct sockaddr_in6 *src)
 {
-    int err = 0;
-
-#if 0
-    heartbeat         = hip_get_param(msg, HIP_PARAM_HEARTBEAT);
-    hip_icmp_interval = heartbeat->heartbeat;
-    heartbeat_counter = hip_icmp_interval;
-    HIP_DEBUG("Received heartbeat interval (%d seconds)\n", hip_icmp_interval);
-#endif
-
-    return err;
+    return 0;
 }
 
 static int hip_heartbeat_init_state(struct modular_state *state)

Other related posts:

  • » [hipl-commit] [trunk] Rev 4718: heartbeat: mark unused parameters as such. - Mircea Gherzan