resolve review comments

This commit is contained in:
jiangzhengwenjz
2020-02-17 01:01:12 +08:00
parent fb8ac4af93
commit 6ffc10a1c4
+5 -7
View File
@@ -108,19 +108,17 @@ static const struct LLSFStruct llsf_struct[2] = {
} }
}; };
#if LIBRFU_VERSION == 1026 #define xstr(s) str(s)
static const char lib_ver[] = "RFU_V1026"; #define str(s) #s
#else const char version_string[] = "RFU_V" xstr(LIBRFU_VERSION);
static const char lib_ver[] = "RFU_V1024";
#endif
static const char str_checkMbootLL[] = "RFU-MBOOT"; static const char str_checkMbootLL[] = "RFU-MBOOT";
#define COPY(src, dst, iterator, size) do { \ #define COPY(src, dst, iterator, size) do { \
const u16 *_src = (const u16 *)(src); \ const u16 *_src = (const u16 *)(src); \
u16 *_dst = (u16 *)(dst); \ u16 *_dst = (u16 *)(dst); \
iterator = (size); \ (iterator) = (size); \
while (iterator-- != 0) \ while ((iterator)-- != 0) \
*_dst++ = *_src++; \ *_dst++ = *_src++; \
} while (0) } while (0)