ALL UPPER CASE for macro definition (#19605)

Co-authored-by: facetosea <25808407@qq.com>
This commit is contained in:
xinsheng Ren 2023-01-18 10:08:44 +08:00 committed by GitHub
parent f998950759
commit 5c5e9144f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
#include "taoserror.h" #include "taoserror.h"
#define PROCESS_ITEM 12 #define PROCESS_ITEM 12
#define uuidLen37 37 #define UUIDLEN37 37
typedef struct { typedef struct {
uint64_t user; uint64_t user;
@ -835,8 +835,8 @@ int32_t taosGetSystemUUID(char *uid, int32_t uidlen) {
return 0; return 0;
#elif defined(_TD_DARWIN_64) #elif defined(_TD_DARWIN_64)
uuid_t uuid = {0}; uuid_t uuid = {0};
char buf[uuidLen37]; char buf[UUIDLEN37];
memset(buf, 0, uuidLen37); memset(buf, 0, UUIDLEN37);
uuid_generate(uuid); uuid_generate(uuid);
// it's caller's responsibility to make enough space for `uid`, that's 36-char + 1-null // it's caller's responsibility to make enough space for `uid`, that's 36-char + 1-null
uuid_unparse_lower(uuid, buf); uuid_unparse_lower(uuid, buf);