summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjiangzhengwenjz <jiangzhengwenjzw@qq.com>2020-02-17 01:01:12 +0800
committerjiangzhengwenjz <jiangzhengwenjzw@qq.com>2020-02-17 01:01:12 +0800
commit6ffc10a1c4a3162ff4caefe9f057d9916d0cdce3 (patch)
tree2b50e653f4459f270b85c34de23d0b906a8a1ba4 /src
parentfb8ac4af93c238155d8f8e8076b4a7f3aa24914b (diff)
resolve review comments
Diffstat (limited to 'src')
-rw-r--r--src/librfu_rfu.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/librfu_rfu.c b/src/librfu_rfu.c
index 9cd8fe13e..582060f78 100644
--- a/src/librfu_rfu.c
+++ b/src/librfu_rfu.c
@@ -108,19 +108,17 @@ static const struct LLSFStruct llsf_struct[2] = {
}
};
-#if LIBRFU_VERSION == 1026
-static const char lib_ver[] = "RFU_V1026";
-#else
-static const char lib_ver[] = "RFU_V1024";
-#endif
+#define xstr(s) str(s)
+#define str(s) #s
+const char version_string[] = "RFU_V" xstr(LIBRFU_VERSION);
static const char str_checkMbootLL[] = "RFU-MBOOT";
#define COPY(src, dst, iterator, size) do { \
const u16 *_src = (const u16 *)(src); \
u16 *_dst = (u16 *)(dst); \
- iterator = (size); \
- while (iterator-- != 0) \
+ (iterator) = (size); \
+ while ((iterator)-- != 0) \
*_dst++ = *_src++; \
} while (0)