2009-10-23 12:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbbffnc.c
* added note about padding standard - thanks to Mindaugas for information
* harbour/contrib/rddsql/sddfb/fbirddd.c
* pacified strict alignment warnings
* harbour/contrib/hbmemio/memio.c
* pacified warning
This commit is contained in:
@@ -17,6 +17,16 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-10-23 12:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/src/rtl/hbbffnc.c
|
||||
* added note about padding standard - thanks to Mindaugas for information
|
||||
|
||||
* harbour/contrib/rddsql/sddfb/fbirddd.c
|
||||
* pacified strict alignment warnings
|
||||
|
||||
* harbour/contrib/hbmemio/memio.c
|
||||
* pacified warning
|
||||
|
||||
2009-10-23 12:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/src/vm/fm.c
|
||||
* enable USE_DL_PREFIX in all C++ builds to avoid conflicts with
|
||||
|
||||
@@ -194,7 +194,7 @@ static ULONG memfsInodeFind( const char * szName, ULONG * pulPos )
|
||||
static PHB_MEMFS_INODE memfsInodeAlloc( const char* szName )
|
||||
{
|
||||
PHB_MEMFS_INODE pInode = ( PHB_MEMFS_INODE ) hb_xgrab( sizeof( HB_MEMFS_INODE ) );
|
||||
ULONG ulInode;
|
||||
ULONG ulInode = 0;
|
||||
|
||||
pInode->llSize = 0;
|
||||
pInode->llAlloc = HB_MEMFS_INITSIZE;
|
||||
|
||||
@@ -191,7 +191,7 @@ static HB_ERRCODE fbDisconnect( SQLDDCONNECTION* pConnection )
|
||||
{
|
||||
ISC_STATUS status[ 5 ];
|
||||
|
||||
isc_detach_database( status, (isc_db_handle*) &pConnection->hConnection );
|
||||
isc_detach_database( status, (isc_db_handle*) (void*) &pConnection->hConnection );
|
||||
return HB_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ static HB_ERRCODE fbOpen( SQLBASEAREAP pArea )
|
||||
int iType;
|
||||
|
||||
|
||||
if ( isc_start_transaction ( status, &pTrans, 1, (isc_db_handle*) &pArea->pConnection->hConnection, 0, NULL ) )
|
||||
if ( isc_start_transaction ( status, &pTrans, 1, (isc_db_handle*) (void*) &pArea->pConnection->hConnection, 0, NULL ) )
|
||||
{
|
||||
hb_errRT_FireBirdDD( EG_OPEN, ESQLDD_START, "Start transaction failed", NULL, ( USHORT ) status[ 1 ] );
|
||||
return HB_FAILURE;
|
||||
@@ -229,7 +229,7 @@ static HB_ERRCODE fbOpen( SQLBASEAREAP pArea )
|
||||
pSqlda->sqln = 1;
|
||||
pSqlda->version = 1;
|
||||
|
||||
if ( isc_dsql_allocate_statement( status, (isc_db_handle*) &pArea->pConnection->hConnection, &pStmt ) )
|
||||
if ( isc_dsql_allocate_statement( status, (isc_db_handle*) (void*) &pArea->pConnection->hConnection, &pStmt ) )
|
||||
{
|
||||
hb_errRT_FireBirdDD( EG_OPEN, ESQLDD_STMTALLOC, "Allocate statement failed", NULL, ( USHORT ) status[ 1 ] );
|
||||
isc_rollback_transaction( status, &pTrans );
|
||||
|
||||
@@ -83,6 +83,7 @@ HB_FUNC( HB_BLOWFISHENCRYPT )
|
||||
char * pszData;
|
||||
HB_BLOWFISH * bf = ( HB_BLOWFISH * ) hb_parc( 1 );
|
||||
|
||||
/* ANSI X.923 padding */
|
||||
ulSize = ( ( ulLen >> 3 ) + 1 ) << 3;
|
||||
pszData = ( char * ) hb_xgrab( ulSize + 1 );
|
||||
memcpy( pszData, hb_itemGetCPtr( pData ), ulLen );
|
||||
|
||||
Reference in New Issue
Block a user