فهرست منبع

#IQRV #comment 文件编码格式调整

80374374 1 سال پیش
والد
کامیت
cd1e627dec

+ 1 - 1
DevAdapter/DeviceSimulator.h

@@ -244,9 +244,9 @@ std::string GetLocalIP()
 		char xIP[64] = {};
 		sprintf(xIP, "%d.%d.%d.%d", in->S_un.S_un_b.s_b1, in->S_un.S_un_b.s_b2, in->S_un.S_un_b.s_b3, in->S_un.S_un_b.s_b4);
 		//LOG4VTM(INFO, ("ip:%s", xIP));
-
 		return std::string(xIP);
 	}
+	return "";
 #else
 	std::string re = "";
 	int sfd, intr;

+ 0 - 1
Framework/RVCComm/ClientComm.cpp

@@ -415,7 +415,6 @@ void CClientComm::RecvThreadProcess()
 					{
 						WLog_DBG(TAG, "receive error flag recv package.");
 						DWORD dwSysCode(0), dwUserCode(0);
-						string strErrMsg;
 						if (!ppkg->GetErrMsg(dwSysCode, dwUserCode, strErrMsg))
 						{
 							dwSysCode = Error_Bug;

+ 0 - 1
Framework/RVCComm/HTTPClient.cpp

@@ -1585,7 +1585,6 @@ const bool CHTTPClient::Get(CHTTPReq &req, CHTTPRet &ret){
 	m_iCurlTimeout = req.m_timeOut;
 
 	CHTTPClient::HttpResponse g_Response;
-	int nLen = 0;
 	string url = req.m_url + "?" + param;
 	if(req.m_bTransCode){
 		if(req.m_printDbg)

+ 0 - 2
Framework/RVCComm/Package.cpp

@@ -744,8 +744,6 @@ bool CCommPackage::GenerateMacSM3(BYTE* pData, int nLen, BYTE mac[8])
 
 	BYTE buf[16];
 	memset(buf, 0, sizeof(buf));
-	int nBufLen = 16;
-
 	memcpy(mac, sm3, 8);
 	return true;
 }

+ 5 - 5
Framework/winpr/libwinpr/utils/wlog/wlog.c

@@ -80,7 +80,7 @@ static void WLog_Uninit_(void) __attribute__((destructor));
 #include <windows.h>
 #include <tchar.h>
 char* get_process_name() {
-	// 拼接前缀、进程名和后缀
+	// 鎷兼帴鍓嶇紑銆佽繘绋嬪悕鍜屽悗缂€
 	char date_str[MAX_PATH];
 	char* full_path = malloc(MAX_PATH);
 	
@@ -94,10 +94,10 @@ char* get_process_name() {
 
 	snprintf(full_path, MAX_PATH, "%s\\wlog_%s.log", g_logRoot, date_str);
 	//MessageBox(NULL, full_path, NULL, 0);
-	// 检查文件是否存在
+	// 妫€鏌ユ枃浠舵槸鍚﹀瓨鍦�
 	FILE* fp = fopen(full_path, "r");
 	if (!fp) {
-		// 创建文件
+		// 鍒涘缓鏂囦欢
 		fp = fopen(full_path, "w");
 		if (!fp) {
 			printf("Failed to create file: %s\n", full_path);
@@ -131,7 +131,7 @@ void WLog_WriteLogFile(int type, const char* fmt, ...)
 	GetSystemTimePreciseAsFileTime(&ft);
 	FileTimeToSystemTime(&ft, &st);
 
-	// 将 UTC 时间转换为本地时间
+	// 灏� UTC 鏃堕棿杞�崲涓烘湰鍦版椂闂�
 	SYSTEMTIME local_st;
 	FileTimeToLocalFileTime(&ft, &ft);
 	FileTimeToSystemTime(&ft, &local_st);
@@ -153,7 +153,7 @@ void WLog_WriteLogFile(int type, const char* fmt, ...)
 		pFile = fopen(path, "a");
 		if (!pFile) {
 			pFile = NULL;
-			// 错误处理
+			// 閿欒�澶勭悊
 			return;
 		}
 	}