mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
REMOTE warning fixes
This commit is contained in:
parent
0aba7122ab
commit
1a2a9c0129
@ -1023,7 +1023,7 @@ STATUS GDS_DATABASE_INFO(STATUS* user_status,
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (buffer_length > sizeof(temp)) {
|
if (buffer_length > (SLONG) sizeof(temp)) {
|
||||||
temp_buffer = ALLR_alloc((SLONG) buffer_length);
|
temp_buffer = ALLR_alloc((SLONG) buffer_length);
|
||||||
} else {
|
} else {
|
||||||
temp_buffer = temp;
|
temp_buffer = temp;
|
||||||
@ -2093,7 +2093,7 @@ STATUS GDS_DSQL_FREE(STATUS * user_status, RSR * stmt_handle, USHORT option)
|
|||||||
return error(user_status);
|
return error(user_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
statement->rsr_handle = (FRBRD *) packet->p_resp.p_resp_object;
|
statement->rsr_handle = (FRBRD *)(ULONG) packet->p_resp.p_resp_object;
|
||||||
if (packet->p_resp.p_resp_object == 0xFFFF) {
|
if (packet->p_resp.p_resp_object == 0xFFFF) {
|
||||||
release_sql_request(statement);
|
release_sql_request(statement);
|
||||||
*stmt_handle = NULL;
|
*stmt_handle = NULL;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
* Contributor(s): ______________________________________.
|
* Contributor(s): ______________________________________.
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
$Id: parser.cpp,v 1.7 2003-03-04 03:42:23 brodsom Exp $
|
$Id: parser.cpp,v 1.8 2003-04-08 01:06:46 brodsom Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "firebird.h"
|
#include "firebird.h"
|
||||||
@ -228,7 +228,7 @@ REM_MSG DLL_EXPORT PARSE_messages(UCHAR * blr, USHORT blr_length)
|
|||||||
net_length += (desc->dsc_length + 3) & ~3;
|
net_length += (desc->dsc_length + 3) & ~3;
|
||||||
if (align > 1)
|
if (align > 1)
|
||||||
offset = FB_ALIGN(offset, align);
|
offset = FB_ALIGN(offset, align);
|
||||||
desc->dsc_address = (UCHAR *) offset;
|
desc->dsc_address = (UCHAR *)(ULONG) offset;
|
||||||
offset += desc->dsc_length;
|
offset += desc->dsc_length;
|
||||||
}
|
}
|
||||||
format->fmt_length = offset;
|
format->fmt_length = offset;
|
||||||
|
@ -440,7 +440,7 @@ void SRVR_multi_thread( PORT main_port, USHORT flags)
|
|||||||
extra_threads = threads_waiting - pending_requests;
|
extra_threads = threads_waiting - pending_requests;
|
||||||
if (extra_threads < 0) {
|
if (extra_threads < 0) {
|
||||||
gds__thread_start( reinterpret_cast<FPTR_INT_VOID_PTR>(thread),
|
gds__thread_start( reinterpret_cast<FPTR_INT_VOID_PTR>(thread),
|
||||||
(void*)flags,
|
(void*)(ULONG) flags,
|
||||||
THREAD_medium,
|
THREAD_medium,
|
||||||
THREAD_ast,
|
THREAD_ast,
|
||||||
0);
|
0);
|
||||||
|
@ -815,7 +815,7 @@ USHORT XNET_init(HWND hwnd,
|
|||||||
return (USHORT) 1;
|
return (USHORT) 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (USHORT) xpm;
|
return (USHORT)(ULONG) xpm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user