8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00

REMOTE warning fixes

This commit is contained in:
brodsom 2003-04-08 01:06:46 +00:00
parent 0aba7122ab
commit 1a2a9c0129
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -815,7 +815,7 @@ USHORT XNET_init(HWND hwnd,
return (USHORT) 1;
}
return (USHORT) xpm;
return (USHORT)(ULONG) xpm;
}