[SCM] Samba Shared Repository - branch master updated

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Jun 1 03:57:08 MDT 2011


On Wed, Jun 01, 2011 at 11:48:02AM +0200, Rusty Russell wrote:
>  	for (i = 0; i < state->request.count; i++) {
> -		end = tevent_timeval_add(&end, 0, state->request.delay);
> +		end = tevent_timeval_add(&end, state->request.delay / 1000000,
> +					 state->request.delay % 1000000);

Wouldn't it be smarter to add that knowledge to timeval_add
than to add the burden to all callers?

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen


More information about the samba-technical mailing list