mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +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
|
||||
{
|
||||
if (buffer_length > sizeof(temp)) {
|
||||
if (buffer_length > (SLONG) sizeof(temp)) {
|
||||
temp_buffer = ALLR_alloc((SLONG) buffer_length);
|
||||
} else {
|
||||
temp_buffer = temp;
|
||||
@ -2093,7 +2093,7 @@ STATUS GDS_DSQL_FREE(STATUS * user_status, RSR * stmt_handle, USHORT option)
|
||||
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) {
|
||||
release_sql_request(statement);
|
||||
*stmt_handle = NULL;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* 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"
|
||||
@ -228,7 +228,7 @@ REM_MSG DLL_EXPORT PARSE_messages(UCHAR * blr, USHORT blr_length)
|
||||
net_length += (desc->dsc_length + 3) & ~3;
|
||||
if (align > 1)
|
||||
offset = FB_ALIGN(offset, align);
|
||||
desc->dsc_address = (UCHAR *) offset;
|
||||
desc->dsc_address = (UCHAR *)(ULONG) offset;
|
||||
offset += desc->dsc_length;
|
||||
}
|
||||
format->fmt_length = offset;
|
||||
|
@ -440,7 +440,7 @@ void SRVR_multi_thread( PORT main_port, USHORT flags)
|
||||
extra_threads = threads_waiting - pending_requests;
|
||||
if (extra_threads < 0) {
|
||||
gds__thread_start( reinterpret_cast<FPTR_INT_VOID_PTR>(thread),
|
||||
(void*)flags,
|
||||
(void*)(ULONG) flags,
|
||||
THREAD_medium,
|
||||
THREAD_ast,
|
||||
0);
|
||||
|
@ -815,7 +815,7 @@ USHORT XNET_init(HWND hwnd,
|
||||
return (USHORT) 1;
|
||||
}
|
||||
|
||||
return (USHORT) xpm;
|
||||
return (USHORT)(ULONG) xpm;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user