From 8acc0ff48f675cf154987cfc11fe9ba7813eaf50 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 2 Nov 2007 13:13:03 +0000 Subject: Introduce configuration dependent number of parameters in a nicer way --- trackerlogic.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'trackerlogic.c') diff --git a/trackerlogic.c b/trackerlogic.c index fd34d28..134c504 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -145,11 +145,7 @@ static void vector_remove_torrent( ot_vector *vector, ot_torrent *match ) { } } -#ifdef WANT_TRACKER_SYNC -ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer, int from_changeset ) { -#else -ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ) { -#endif +ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_TRACKER_SYNC_PARAM( int from_changeset ) ) { int exactmatch; ot_torrent *torrent; ot_peer *peer_dest; -- cgit v1.2.3