未验证 提交 5c5e9144 编写于 作者: X xinsheng Ren 提交者: GitHub

ALL UPPER CASE for macro definition (#19605)

Co-authored-by: Nfacetosea <25808407@qq.com>
上级 f9989507
......@@ -18,7 +18,7 @@
#include "taoserror.h"
#define PROCESS_ITEM 12
#define uuidLen37 37
#define UUIDLEN37 37
typedef struct {
uint64_t user;
......@@ -835,8 +835,8 @@ int32_t taosGetSystemUUID(char *uid, int32_t uidlen) {
return 0;
#elif defined(_TD_DARWIN_64)
uuid_t uuid = {0};
char buf[uuidLen37];
memset(buf, 0, uuidLen37);
char buf[UUIDLEN37];
memset(buf, 0, UUIDLEN37);
uuid_generate(uuid);
// it's caller's responsibility to make enough space for `uid`, that's 36-char + 1-null
uuid_unparse_lower(uuid, buf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册