提交 417148ea 编写于 作者: Z zhaoyanggh

win compile

上级 ace0f568
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
extern char configDir[]; extern char configDir[];
#define STR_INSERT_INTO "INSERT INTO " #define STR_INSERT_INTO "INSERT INTO "
#define _WINSOCK_DEPRECATED_NO_WARNINGS 1
#define MAX_RECORDS_PER_REQ 32766 #define MAX_RECORDS_PER_REQ 32766
#define HEAD_BUFF_LEN \ #define HEAD_BUFF_LEN \
......
...@@ -142,7 +142,7 @@ int taosRandom() { return rand(); } ...@@ -142,7 +142,7 @@ int taosRandom() { return rand(); }
#endif #endif
bool isStringNumber(char *input) { bool isStringNumber(char *input) {
int len = strlen(input); int len = (int)strlen(input);
if (0 == len) { if (0 == len) {
return false; return false;
} }
...@@ -244,9 +244,9 @@ int getChildNameOfSuperTableWithLimitAndOffset(TAOS *taos, char *dbName, ...@@ -244,9 +244,9 @@ int getChildNameOfSuperTableWithLimitAndOffset(TAOS *taos, char *dbName,
// printf("==== sub table name: %s\n", pTblName); // printf("==== sub table name: %s\n", pTblName);
count++; count++;
if (count >= childTblCount - 1) { if (count >= childTblCount - 1) {
char *tmp = char *tmp = realloc(
realloc(childTblName, childTblName,
(size_t)childTblCount * 1.5 * TSDB_TABLE_NAME_LEN + 1); (size_t)(childTblCount * 1.5 * TSDB_TABLE_NAME_LEN + 1));
if (tmp != NULL) { if (tmp != NULL) {
childTblName = tmp; childTblName = tmp;
childTblCount = (int)(childTblCount * 1.5); childTblCount = (int)(childTblCount * 1.5);
...@@ -408,7 +408,7 @@ int postProceSql(char *host, uint16_t port, char *sqlstr, ...@@ -408,7 +408,7 @@ int postProceSql(char *host, uint16_t port, char *sqlstr,
char response_buf[RESP_BUF_LEN]; char response_buf[RESP_BUF_LEN];
uint16_t rest_port = port + TSDB_PORT_HTTP; uint16_t rest_port = port + TSDB_PORT_HTTP;
int req_buf_len = strlen(sqlstr) + REQ_EXTRA_BUF_LEN; int req_buf_len = (int)strlen(sqlstr) + REQ_EXTRA_BUF_LEN;
request_buf = malloc(req_buf_len); request_buf = malloc(req_buf_len);
if (NULL == request_buf) { if (NULL == request_buf) {
...@@ -471,7 +471,7 @@ int postProceSql(char *host, uint16_t port, char *sqlstr, ...@@ -471,7 +471,7 @@ int postProceSql(char *host, uint16_t port, char *sqlstr,
} }
verbosePrint("%s() LN%d: Request:\n%s\n", __func__, __LINE__, request_buf); verbosePrint("%s() LN%d: Request:\n%s\n", __func__, __LINE__, request_buf);
req_str_len = strlen(request_buf); req_str_len = (int)strlen(request_buf);
sent = 0; sent = 0;
do { do {
#ifdef WINDOWS #ifdef WINDOWS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册