mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-25 01:23:03 +01:00
Misc.
This commit is contained in:
parent
a6b886f0e1
commit
b4a695a031
@ -1927,7 +1927,7 @@ static ISC_STATUS blob_filter(USHORT action,
|
||||
|
||||
thread_db* tdbb = JRD_get_thread_data();
|
||||
|
||||
jrd_tra* const transaction = (jrd_tra*) control->ctl_internal[1];
|
||||
jrd_tra* const transaction = reinterpret_cast<jrd_tra*>(control->ctl_internal[1]);
|
||||
bid* blob_id = reinterpret_cast<bid*>(control->ctl_internal[2]);
|
||||
|
||||
#ifdef DEV_BUILD
|
||||
|
@ -1354,8 +1354,8 @@ void PAG_header_init(thread_db* tdbb)
|
||||
SCHAR temp_buffer[2 * MIN_PAGE_SIZE];
|
||||
SCHAR* temp_page = (SCHAR *) FB_ALIGN((IPTR) temp_buffer, MIN_PAGE_SIZE);
|
||||
|
||||
header_page* header = (header_page*) temp_page;
|
||||
PIO_header(dbb, temp_page, MIN_PAGE_SIZE);
|
||||
const header_page* header = (header_page*) temp_page;
|
||||
|
||||
if (header->hdr_header.pag_type != pag_header || header->hdr_sequence) {
|
||||
ERR_post(Arg::Gds(isc_bad_db_format) << Arg::Str(attachment->att_filename));
|
||||
|
@ -994,8 +994,9 @@ void SDW_start(thread_db* tdbb, const TEXT* file_name,
|
||||
still around, then there is a possibility for shadow corruption */
|
||||
|
||||
const int string_length = (USHORT) *p++;
|
||||
if (strncmp(dbb_file->fil_string, reinterpret_cast<const char*>(p), string_length) &&
|
||||
check_for_file(tdbb, reinterpret_cast<const char*>(p), string_length))
|
||||
const char* fname = reinterpret_cast<const char*>(p);
|
||||
if (strncmp(dbb_file->fil_string, fname, string_length) &&
|
||||
check_for_file(tdbb, fname, string_length))
|
||||
{
|
||||
ERR_punt();
|
||||
}
|
||||
|
@ -736,7 +736,7 @@ void TracePluginImpl::appendServiceQueryParams(size_t send_item_length,
|
||||
string send_query;
|
||||
string recv_query;
|
||||
USHORT l;
|
||||
SCHAR item;
|
||||
UCHAR item;
|
||||
//USHORT timeout = 0; // Unused
|
||||
|
||||
const UCHAR* items = send_items;
|
||||
|
Loading…
Reference in New Issue
Block a user