提交 cbad7097 编写于 作者: G Ganlin Zhao

fix windows compilation errror

上级 8ffb0688
...@@ -22,8 +22,7 @@ extern "C" { ...@@ -22,8 +22,7 @@ extern "C" {
#include <stdint.h> #include <stdint.h>
int32_t httpGetReqCount(); int64_t httpGetReqCount();
int32_t httpClearReqCount();
int32_t httpGetStatusCodeCount(int index); int32_t httpGetStatusCodeCount(int index);
int32_t httpClearStatusCodeCount(int index); int32_t httpClearStatusCodeCount(int index);
int32_t httpInitSystem(); int32_t httpInitSystem();
......
...@@ -120,7 +120,7 @@ void httpCleanUpSystem() { ...@@ -120,7 +120,7 @@ void httpCleanUpSystem() {
tsHttpServer.status = HTTP_SERVER_CLOSED; tsHttpServer.status = HTTP_SERVER_CLOSED;
} }
int32_t httpGetReqCount() { return atomic_exchange_64(&tsHttpServer.requestNum, 0); } int64_t httpGetReqCount() { return atomic_exchange_64(&tsHttpServer.requestNum, 0); }
int32_t httpGetStatusCodeCount(int index) { int32_t httpGetStatusCodeCount(int index) {
return atomic_load_32(&tsHttpServer.statusCodeErrs[index]); return atomic_load_32(&tsHttpServer.statusCodeErrs[index]);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册