anchor.diff:  	end;
   acct_query(Start, End, Protocol, Types, AttrsMatch, {Cont, [_ | T]}, Acc) ->
   	acct_query(Start, End, Protocol, Types, AttrsMatch, {Cont, T}, Acc);
  -acct_query(Start, End, Protocol, Types, AttrsMatch, {Cont, []}, Acc) ->
  -	acct_query(Start, End, Protocol, Types, AttrsMatch,
  -			disk_log:chunk(?AUTHLOG, Cont), Acc).
  +acct_query(_, _, _, _, _, {Cont, []}, Acc) ->
  +	{Cont, lists:reverse(Acc)}.
   %% @hidden
   acct_query1(Start, End, Protocol, Types, '_', {Cont, [H | T]}, Acc, '_') ->
   	acct_query(Start, End, Protocol, Types, '_', {Cont, T}, [H | Acc]);
  
positive.code: %% 	`Protocol', `Types', `ReqAttrsMatch' `ResAttrsMatch'  may be
  %% 	'_' which matches any value.
  %% 
  %% 	Returns a list of matching authentication events.
  %%
  auth_query({{_, _, _}, {_, _, _}} = Start, End, Protocol, Types,
  		ReqAttrsMatch, RespAttrsMatch) ->
  	Seconds = calendar:datetime_to_gregorian_seconds(Start) - ?EPOCH,
  	auth_query(Seconds * 1000, End, Protocol, Types,
  			ReqAttrsMatch, RespAttrsMatch);
  auth_query(Start, {{_, _, _}, {_, _, _}} = End, Protocol, Types,
  		ReqAttrsMatch, RespAttrsMatch) ->
  	Seconds = calendar:datetime_to_gregorian_seconds(End) - ?EPOCH,
  	auth_query(Start, Seconds * 1000 + 999, Protocol, Types,
  			ReqAttrsMatch, RespAttrsMatch);
  auth_query(Start, End, Protocol, Types, ReqAttrsMatch, RespAttrsMatch)
  		when is_integer(Start), is_integer(End) ->
  	auth_query(Start, End, Protocol, Types, ReqAttrsMatch, RespAttrsMatch,
  			disk_log:chunk(?AUTHLOG, start), []).
  
  %% @hidden
  auth_query(_Start, _End, _Protocol, _Types,
  		_ReqAttrsMatch, _RespAttrsMatch, eof, Acc) ->
  	lists:reverse(Acc);
  auth_query(_Start, _End, _Protocol, _Types,
  		_ReqAttrsMatch, _RespAttrsMatch, {error, Reason}, _Acc) ->
  	exit(Reason);
  auth_query(Start, End, '_', '_', ReqAttrsMatch, RespAttrsMatch,
  		{Cont, [{TS, _, _, _, _, _, _, _, _} | _] = Chunk}, Acc)
  		when TS >= Start, TS =< End ->
  
negative.code: 		AttrsMatch :: [{Attribute, Match}] | '_',
  		Attribute :: byte(),
  		Match :: term() | '_',
  		Result :: {Continuation2, Events} | {eof, Events} | {error, Reason},
  		Continuation2 :: disk_log:continuation(),
  		Events :: [acct_event()],
  		Reason :: term().
  %% @doc Query accounting log events with filters.
  %%
  %% 	The first time called `Continuation' should have the value `start'.
  %%
  %% 	Events before `Start' or after `Stop', or which do not match
  %% 	the `Protocol' or one of the `Types', are ignored.
  