mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-06 00:13:33 +00:00
Fixed compiler warnings
This commit is contained in:
@@ -478,10 +478,15 @@ duk_ret_t ILibDuktape_fs_write(duk_context *ctx)
|
||||
char *buffer = Duktape_GetBuffer(ctx, 1, &bufferLen);
|
||||
int cbx = 2;
|
||||
int offset = 0, length = (int)bufferLen, e;
|
||||
int position = -1;
|
||||
//int position = -1;
|
||||
|
||||
if (duk_is_number(ctx, 2)) { offset = (int)duk_require_int(ctx, 2); cbx++; }
|
||||
if (duk_is_number(ctx, 3)) { length = (int)duk_require_int(ctx, 3); cbx++; }
|
||||
if (duk_is_number(ctx, 4)) { position = (int)duk_require_int(ctx, 4); cbx++; }
|
||||
if (duk_is_number(ctx, 4))
|
||||
{
|
||||
//position = (int)duk_require_int(ctx, 4);
|
||||
cbx++;
|
||||
}
|
||||
if (!duk_is_function(ctx, cbx)) { return(ILibDuktape_Error(ctx, "Invalid Parameters")); }
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
@@ -184,7 +184,6 @@ char * ILibProcessPipe_Manager_OnQuery(void *chain, void *object, int fd, size_t
|
||||
{
|
||||
ILibProcessPipe_Manager_Object *man = (ILibProcessPipe_Manager_Object*)object;
|
||||
char *ret = ((ILibChain_Link*)object)->MetaData;
|
||||
int i;
|
||||
*dataLen = strnlen_s(((ILibChain_Link*)object)->MetaData, 1024);
|
||||
|
||||
void *node = ILibLinkedList_GetNode_Search(man->ActivePipes, ILibProcessPipe_Manager_OnQuery_comparer, (void*)(uintptr_t)fd);
|
||||
|
||||
Reference in New Issue
Block a user