anchor.diff:  handle_cast({send_have_piece, PieceNumber}, S) ->
       etorrent_t_peer_send:send_have_piece(S#state.send_pid, PieceNumber),
       {noreply, S};
  -handle_cast({endgame_got_chunk, Index, Offset}, S) ->
  -    NS = handle_endgame_got_chunk(Index, Offset, S),
  +handle_cast({endgame_got_chunk, Chunk}, S) ->
  +    NS = handle_endgame_got_chunk(Chunk, S),
       {noreply, NS};
   handle_cast(_Msg, State) ->
       {noreply, State}.
  
positive.code: %% API
  -export([start_link/5, connect/3, choke/1, unchoke/1, interested/1,
  	 send_have_piece/2, complete_handshake/4,
  	 stop/1, endgame_got_chunk/3]).
  
  %% gen_server callbacks
  -export([init/1, handle_call/3, handle_cast/2, handle_info/2,
  
negative.code: 			    Chunks)
  	end,
      RSet = lists:foldl(G, S#state.remote_request_set, ChunkList),
      {ok, S#state { remote_request_set = RSet }}.
  
  %%--------------------------------------------------------------------
  