Commit 7886011d authored by Cedric Roux's avatar Cedric Roux

- Fix embedded \0 in format

- Fix USER_MODE warning

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4678 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 2c5de663
...@@ -252,7 +252,8 @@ int dump_ue_stats(PHY_VARS_UE *phy_vars_ue, char* buffer, int length, runmode_t ...@@ -252,7 +252,8 @@ int dump_ue_stats(PHY_VARS_UE *phy_vars_ue, char* buffer, int length, runmode_t
} }
len += sprintf(&buffer[len],"EOF\n"); len += sprintf(&buffer[len],"EOF\n");
len += sprintf(&buffer[len],"\0"); /* SR: for trailing '\0' */
len ++;
return len; return len;
} // is_clusterhead } // is_clusterhead
...@@ -478,7 +479,8 @@ int dump_eNB_stats(PHY_VARS_eNB *phy_vars_eNB, char* buffer, int length) { ...@@ -478,7 +479,8 @@ int dump_eNB_stats(PHY_VARS_eNB *phy_vars_eNB, char* buffer, int length) {
len += sprintf(&buffer[len],"\n"); len += sprintf(&buffer[len],"\n");
} }
len += sprintf(&buffer[len],"EOF\n"); len += sprintf(&buffer[len],"EOF\n");
len += sprintf(&buffer[len],"\0"); /* SR: for trailing '\0' */
len++;
return len; return len;
} }
...@@ -20,10 +20,11 @@ Type definition and structure for 802.21 interface ...@@ -20,10 +20,11 @@ Type definition and structure for 802.21 interface
#define __MIH_C_LINK_TYPES_H__ #define __MIH_C_LINK_TYPES_H__
#include <sys/types.h> #include <sys/types.h>
#include <linux/types.h> #include <linux/types.h>
#warning " Hack USER_MODE"
#undef USER_MODE
#define USER_MODE
#ifndef USER_MODE
# define USER_MODE
# warning "Hack USER_MODE"
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include "MIH_C_Link_Constants.h" #include "MIH_C_Link_Constants.h"
#include "MIH_C_bit_buffer.h" #include "MIH_C_bit_buffer.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment