patches13/0015-fixed-some-compiler-warnings.patch
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7061 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#define MIH_C_INTERFACE
|
||||
#define MIH_C_F1_BASIC_DATA_TYPES_CODEC_C
|
||||
#include "MIH_C_F1_basic_data_types_codec.h"
|
||||
#include <inttypes.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
unsigned int MIH_C_BITMAP82String(MIH_C_BITMAP8_T* dataP, char* bufP) {
|
||||
@@ -72,21 +73,21 @@ void MIH_C_BITMAP32_encode(Bit_Buffer_t* bbP, MIH_C_BITMAP32_T* dataP) {
|
||||
//-----------------------------------------------------------------------------
|
||||
void MIH_C_BITMAP64_encode(Bit_Buffer_t* bbP, MIH_C_BITMAP64_T* dataP) {
|
||||
//-----------------------------------------------------------------------------
|
||||
printf("[MIH_C] %s: %16X\n", __FUNCTION__, *dataP);
|
||||
printf("[MIH_C] %s: %16"PRIX64"\n", __FUNCTION__, *dataP);
|
||||
BitBuffer_write32(bbP, (MIH_C_UNSIGNED_INT4_T)(*dataP>>32));
|
||||
BitBuffer_write32(bbP, (MIH_C_UNSIGNED_INT4_T)*dataP);
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
void MIH_C_BITMAP128_encode(Bit_Buffer_t* bbP, MIH_C_BITMAP128_T* dataP) {
|
||||
//-----------------------------------------------------------------------------
|
||||
printf("[MIH_C] %s: %16X%16X\n", __FUNCTION__, dataP->val[0], dataP->val[1]);
|
||||
printf("[MIH_C] %s: %16"PRIX64"%16"PRIX64"\n", __FUNCTION__, dataP->val[0], dataP->val[1]);
|
||||
MIH_C_BITMAP64_encode(bbP, &dataP->val[0]);
|
||||
MIH_C_BITMAP64_encode(bbP, &dataP->val[1]);
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
void MIH_C_BITMAP256_encode(Bit_Buffer_t* bbP, MIH_C_BITMAP256_T* dataP) {
|
||||
//-----------------------------------------------------------------------------
|
||||
printf("[MIH_C] %s: %16X%16X%16X%16X\n", __FUNCTION__, dataP->val[0], dataP->val[1], dataP->val[2], dataP->val[3]);
|
||||
printf("[MIH_C] %s: %16"PRIX64"%16"PRIX64"%16"PRIX64"%16"PRIX64"\n", __FUNCTION__, dataP->val[0], dataP->val[1], dataP->val[2], dataP->val[3]);
|
||||
MIH_C_BITMAP64_encode(bbP, &dataP->val[0]);
|
||||
MIH_C_BITMAP64_encode(bbP, &dataP->val[1]);
|
||||
MIH_C_BITMAP64_encode(bbP, &dataP->val[2]);
|
||||
|
||||
@@ -307,7 +307,7 @@ int eRAL_action_save_flow_id(ral_enb_instance_t instanceP, MIH_C_FLOW_ID_T* flow
|
||||
** -1 if the list is full. **
|
||||
***************************************************************************/
|
||||
int eRAL_action_set_channel_id (ral_enb_instance_t instanceP, MIH_C_FLOW_ID_T* flowId, int cnxid){
|
||||
char addr[128];
|
||||
// char addr[128];
|
||||
//char port[8];
|
||||
int f_ix;
|
||||
|
||||
@@ -763,12 +763,12 @@ MIH_C_LINK_AC_RESULT_T eRAL_action_link_activate_resources(ral_enb_instance_t in
|
||||
/* Map QoS */
|
||||
int mapping_result = eRAL_process_map_qos(instanceP, mt_ix, ch_ix);
|
||||
if (mapping_result) {
|
||||
int rc;
|
||||
int rc = -1;
|
||||
#ifdef RAL_DUMMY
|
||||
rc = eRAL_NAS_send_rb_establish_request(mt_ix, ch_ix);
|
||||
#endif
|
||||
#ifdef RAL_REALTIME
|
||||
// LG rc = RAL_process_NAS_message(IO_OBJ_RB, IO_CMD_ADD, mt_ix, ch_ix);
|
||||
// LG rc = RAL_process_NAS_message(IO_OBJ_RB, IO_CMD_ADD, mt_ix, ch_ix); // FIXME why is this commented?
|
||||
#endif
|
||||
if (rc < 0) {
|
||||
/* Failed to send RB establishment request */
|
||||
@@ -849,12 +849,12 @@ MIH_C_LINK_AC_RESULT_T eRAL_action_link_deactivate_resources(ral_enb_instance_t
|
||||
* and go ahead in the request processing. */
|
||||
(void) eRAL_action_del_channel_id(instanceP, f_ix);
|
||||
|
||||
int rc;
|
||||
int rc = -1;
|
||||
#ifdef RAL_DUMMY
|
||||
rc = eRAL_NAS_send_rb_release_request(mt_ix, ch_ix);
|
||||
#endif
|
||||
#ifdef RAL_REALTIME
|
||||
// LG rc = RAL_process_NAS_message(IO_OBJ_RB, IO_CMD_DEL, mt_ix, ch_ix);
|
||||
// LG rc = RAL_process_NAS_message(IO_OBJ_RB, IO_CMD_DEL, mt_ix, ch_ix); // FIXME why is this commented?
|
||||
#endif
|
||||
|
||||
if (rc < 0) {
|
||||
|
||||
@@ -145,7 +145,7 @@ char* eRAL_process_mt_addr_to_string(const unsigned char* ip_addr)
|
||||
int i, index = 0;
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
index += sprintf(&buffer[index], "%.2hX", ip_addr[i]);
|
||||
index += sprintf(&buffer[index], "%.2hhX", ip_addr[i]);
|
||||
if (i % 2) buffer[index++] = ':';
|
||||
}
|
||||
buffer[--index] = '\0';
|
||||
|
||||
@@ -101,7 +101,7 @@ void eRAL_rx_rrc_ral_connection_establishment_indication(instance_t instanceP, M
|
||||
void eRAL_rx_rrc_ral_connection_reestablishment_indication(instance_t instanceP, MessageDef *msg_pP)
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
{
|
||||
module_id_t mod_id = instanceP;
|
||||
// module_id_t mod_id = instanceP;
|
||||
#warning "TO DO ral_rx_rrc_ral_connection_reestablishment_indication"
|
||||
}
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
@@ -146,14 +146,14 @@ void eRAL_rx_rrc_ral_connection_reconfiguration_indication(instance_t instanceP,
|
||||
void eRAL_rx_rrc_ral_measurement_report_indication(instance_t instanceP, MessageDef *msg_pP)
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
{
|
||||
module_id_t mod_id = instanceP;
|
||||
// module_id_t mod_id = instanceP;
|
||||
|
||||
}
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void eRAL_rx_rrc_ral_connection_release_indication(instance_t instanceP, MessageDef *msg_pP)
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
{
|
||||
module_id_t mod_id = instanceP;
|
||||
// module_id_t mod_id = instanceP;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user