- xbt_dict_set(peer->active_peers, remote_peer->id, remote_peer, NULL);
- } else if (xbt_dict_get_or_null(peer->active_peers, remote_peer->id)) {
- xbt_dict_remove(peer->active_peers, remote_peer->id);
+ xbt_dict_set_ext(peer->active_peers, (char*)&remote_peer->id, sizeof(int), remote_peer, NULL);
+ } else if (xbt_dict_get_or_null_ext(peer->active_peers, (char*)&remote_peer->id, sizeof(int))) {
+ xbt_dict_remove_ext(peer->active_peers, (char*)&remote_peer->id, sizeof(int));