Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx> Date: 08/06/2010 at 23:46:44 Revision: 4721 Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: update: fix more unused parameters. Modified: M modules/update/hipd/update.c M modules/update/hipd/update_legacy.c M modules/update/hipd/update_legacy.h === modified file 'modules/update/hipd/update.c' --- modules/update/hipd/update.c 2010-06-08 20:16:03 +0000 +++ modules/update/hipd/update.c 2010-06-08 20:46:25 +0000 @@ -14,6 +14,7 @@ #include "update.h" #include "lib/core/builder.h" +#include "lib/core/common_defines.h" #include "lib/core/hip_udp.h" #include "lib/core/performance.h" #include "lib/core/solve.h" @@ -76,7 +77,7 @@ HIP_IFEL(hip_build_user_hdr(locator_msg, HIP_MSG_SET_LOCATOR_ON, 0), -1, "Failed to add user header\n"); - HIP_IFEL(hip_build_locators_old(locator_msg, 0), + HIP_IFEL(hip_build_locators_old(locator_msg), -1, "Failed to build locators\n"); loc = hip_get_param(locator_msg, HIP_PARAM_LOCATOR); @@ -759,7 +760,8 @@ * * @return zero on success or negative on failure */ -static int hip_update_manual_update(hip_common_t *msg, struct sockaddr_in6 *src) +static int hip_update_manual_update(UNUSED hip_common_t *msg, + UNUSED struct sockaddr_in6 *src) { HIP_DEBUG("Manual UPDATE triggered.\n"); return hip_send_locators_to_all_peers(); @@ -831,8 +833,8 @@ * * @return zero on success, non-negative on error. */ -static int hip_update_check_packet(const uint8_t packet_type, - const uint32_t ha_state, +static int hip_update_check_packet(UNUSED const uint8_t packet_type, + UNUSED const uint32_t ha_state, struct hip_packet_context *ctx) { int err = 0; @@ -900,8 +902,8 @@ * @param ctx the packet context * @return zero on success or negative on failure */ -static int hip_update_handle_packet(const uint8_t packet_type, - const uint32_t ha_state, +static int hip_update_handle_packet(UNUSED const uint8_t packet_type, + UNUSED const uint32_t ha_state, struct hip_packet_context *ctx) { int err = 0, same_seq = 0; === modified file 'modules/update/hipd/update_legacy.c' --- modules/update/hipd/update_legacy.c 2010-05-20 16:14:34 +0000 +++ modules/update/hipd/update_legacy.c 2010-06-08 20:46:25 +0000 @@ -21,10 +21,9 @@ * build a LOCATOR parameter for an UPDATE packet * * @param msg the LOCATOR parameter will be appended to this UPDATE message - * @param spi the SPI number for this UPDATE * @return zero on success on negative on failure */ -int hip_build_locators_old(struct hip_common *msg, uint32_t spi) +int hip_build_locators_old(struct hip_common *msg) { int err = 0, i = 0, count = 0; int addr_max; === modified file 'modules/update/hipd/update_legacy.h' --- modules/update/hipd/update_legacy.h 2010-04-23 15:10:44 +0000 +++ modules/update/hipd/update_legacy.h 2010-06-08 20:46:25 +0000 @@ -10,7 +10,7 @@ #include <stdint.h> #include "lib/core/protodefs.h" -int hip_build_locators_old(struct hip_common *msg, uint32_t spi); +int hip_build_locators_old(struct hip_common *msg); void hip_empty_oppipdb_old(void);