mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 07:43:50 +00:00
Fixed compiler warning
This commit is contained in:
@@ -120,7 +120,7 @@ char* crashMemory = ILib_POSIX_InstallCrashHandler(argv[0]);
|
|||||||
if (argc > 2 && strcmp(argv[1], "-exec") == 0 && integratedJavaScriptLen == 0)
|
if (argc > 2 && strcmp(argv[1], "-exec") == 0 && integratedJavaScriptLen == 0)
|
||||||
{
|
{
|
||||||
integratedJavaScript = ILibString_Copy(argv[2], -1);
|
integratedJavaScript = ILibString_Copy(argv[2], -1);
|
||||||
integratedJavaScriptLen = strnlen_s(integratedJavaScript, sizeof(ILibScratchPad));
|
integratedJavaScriptLen = (int)strnlen_s(integratedJavaScript, sizeof(ILibScratchPad));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc > 1 && strcasecmp(argv[1], "-info") == 0)
|
if (argc > 1 && strcasecmp(argv[1], "-info") == 0)
|
||||||
|
|||||||
@@ -3041,7 +3041,7 @@ void MeshServer_ConnectEx(MeshAgentHostContainer *agent)
|
|||||||
}
|
}
|
||||||
strcpy_s(agent->serveruri, sizeof(agent->serveruri), "wss://meshcentral.com:443/agent.ashx");
|
strcpy_s(agent->serveruri, sizeof(agent->serveruri), "wss://meshcentral.com:443/agent.ashx");
|
||||||
strcpy_s(serverUrl, serverUrlLen, "wss://meshcentral.com:443/agent.ashx");
|
strcpy_s(serverUrl, serverUrlLen, "wss://meshcentral.com:443/agent.ashx");
|
||||||
serverUrlLen = strnlen_s(serverUrl, serverUrlLen);
|
serverUrlLen = (int)strnlen_s(serverUrl, serverUrlLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef MICROSTACK_NOTLS
|
#ifndef MICROSTACK_NOTLS
|
||||||
|
|||||||
@@ -946,7 +946,7 @@ int main(int argc, char* argv[])
|
|||||||
if (argc > 2 && strcmp(argv[1], "-exec") == 0 && integragedJavaScriptLen == 0)
|
if (argc > 2 && strcmp(argv[1], "-exec") == 0 && integragedJavaScriptLen == 0)
|
||||||
{
|
{
|
||||||
integratedJavaScript = ILibString_Copy(argv[2], -1);
|
integratedJavaScript = ILibString_Copy(argv[2], -1);
|
||||||
integragedJavaScriptLen = strnlen_s(integratedJavaScript, sizeof(ILibScratchPad));
|
integragedJavaScriptLen = (int)strnlen_s(integratedJavaScript, sizeof(ILibScratchPad));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -556,7 +556,7 @@ void ILibDuktape_EventEmitter_eventNames_ex(ILibHashtable sender, void *Key1, ch
|
|||||||
if (ILibLinkedList_GetCount(Data) > 0)
|
if (ILibLinkedList_GetCount(Data) > 0)
|
||||||
{
|
{
|
||||||
duk_push_lstring(emitter->ctx, Key2, Key2Len);
|
duk_push_lstring(emitter->ctx, Key2, Key2Len);
|
||||||
duk_put_prop_index(emitter->ctx, -2, duk_get_length(emitter->ctx, -2));
|
duk_put_prop_index(emitter->ctx, -2, (duk_uarridx_t)duk_get_length(emitter->ctx, -2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user