Remove (x2) variable in BCM_STRNCPY_S and BCM_STRCPY_S when performance optimization enabled

This commit is contained in:
weitianhua
2020-03-12 15:17:37 +08:00
parent b86f4d4f00
commit 0d2790a429
14 changed files with 46 additions and 60 deletions

View File

@@ -36,8 +36,8 @@ typedef bool BOOLEAN;
#define PACKED __packed
// #define INLINE __inline
#define BCM_STRCPY_S(x1,x2,x3) strcpy((x1),(x3))
#define BCM_STRNCPY_S(x1,x2,x3,x4) strncpy((x1),(x3),(x4))
#define BCM_STRCPY_S(x1,x2) strcpy((x1),(x2))
#define BCM_STRNCPY_S(x1,x2,x3) strncpy((x1),(x2),(x3))
/* READ WELL !!
**