Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 234460 | Differences between
and this patch

Collapse All | Expand All

(-)src-native-new/src/transport/BaseTransport/BaseTL.c (-1 / +1 lines)
Lines 319-325 Link Here
319
	tl_control_connection_t*  connectionEntry;
319
	tl_control_connection_t*  connectionEntry;
320
320
321
	/* Allocate a connection entry block */
321
	/* Allocate a connection entry block */
322
	connectionEntry = tptp_malloc( sizeof(tl_data_connection_t) );
322
	connectionEntry = (tl_control_connection_t*)tptp_malloc( sizeof(tl_control_connection_t) );
323
	if ( connectionEntry == NULL )
323
	if ( connectionEntry == NULL )
324
	{
324
	{
325
		return TPTP_ERROR_OUT_OF_MEMORY;
325
		return TPTP_ERROR_OUT_OF_MEMORY;
(-)src-native-new/src/shared/TPTPUtil/hashtable.c (-2 / +2 lines)
Lines 249-255 Link Here
249
HashTable* tableCreate() 
249
HashTable* tableCreate() 
250
{
250
{
251
	HashTable* hasht;
251
	HashTable* hasht;
252
	long int initialCapacity = 101;
252
	long int initialCapacity = 1001;
253
253
254
	hasht = (HashTable*) tptp_malloc(sizeof(HashTable));
254
	hasht = (HashTable*) tptp_malloc(sizeof(HashTable));
255
255
Lines 450-456 Link Here
450
450
451
	memset(hasht->table,'\0',hasht->table_len * sizeof(Entry*));
451
	memset(hasht->table,'\0',hasht->table_len * sizeof(Entry*));
452
452
453
	for (i = oldCapacity-1; i-- > 0;) {
453
	for (i = oldCapacity; i-- > 0;) {
454
		for (old = oldMap[i]; old != NULL; ) {
454
		for (old = oldMap[i]; old != NULL; ) {
455
			ent = old;
455
			ent = old;
456
			old = (Entry*)old->next;
456
			old = (Entry*)old->next;

Return to bug 234460