mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
- Fix embedded \0 in format
- Fix USER_MODE warning git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4678 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -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],"\0");
|
||||
/* SR: for trailing '\0' */
|
||||
len ++;
|
||||
|
||||
return len;
|
||||
} // is_clusterhead
|
||||
@@ -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],"EOF\n");
|
||||
len += sprintf(&buffer[len],"\0");
|
||||
|
||||
/* SR: for trailing '\0' */
|
||||
len++;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
@@ -20,10 +20,11 @@ Type definition and structure for 802.21 interface
|
||||
#define __MIH_C_LINK_TYPES_H__
|
||||
#include <sys/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_bit_buffer.h"
|
||||
|
||||
Reference in New Issue
Block a user