Revision d42c2650

View differences:

transmissionHandler.c
434 434
	send_conn_msg(con_id, MAX, INVITE);
435 435

  
436 436
	struct event *ev;
437
	ev = evtimer_new(base, pmtu_timeout_cb, (void *) con_id);
437
	ev = evtimer_new(base, pmtu_timeout_cb, (void *) (long)con_id);
438 438
	event_add(ev, &connectbuf[con_id]->timeout_value);
439 439

  
440 440
	return con_id;
......
1317 1317
			//start time out
1318 1318
			//TODO make timeout at least a DEFINE
1319 1319
			struct timeval timeout = { 4, 0 };
1320
			event_base_once(base, -1, EV_TIMEOUT, &recv_timeout_cb, (void *) recv_id, &timeout);
1320
			event_base_once(base, -1, EV_TIMEOUT, &recv_timeout_cb, (void *) (long)recv_id, &timeout);
1321 1321
		}
1322 1322
	}
1323 1323
}
......
1325 1325
//done
1326 1326
void recv_timeout_cb(int fd, short event, void *arg)
1327 1327
{
1328
	int recv_id = (int) arg;
1328
	int recv_id = (long) arg;
1329 1329
	debug("ML: recv_timeout_cb called");
1330 1330

  
1331 1331
	if (recvdatabuf[recv_id] == NULL) {
......
1396 1396
{
1397 1397
	debug("ML: pmtu timeout called");
1398 1398

  
1399
	int con_id = (int) arg;
1399
	int con_id = (long) arg;
1400 1400
	pmtu new_pmtusize;
1401 1401
	struct timeval timeout;
1402 1402
	
......
1453 1453

  
1454 1454
reschedule:
1455 1455
	/* reschedule */
1456
	event_base_once(base, -1, EV_TIMEOUT, pmtu_timeout_cb, (void *) con_id, &timeout);
1456
	event_base_once(base, -1, EV_TIMEOUT, pmtu_timeout_cb, (void *) (long)con_id, &timeout);
1457 1457
}
1458 1458

  
1459 1459
/*

Also available in: Unified diff