Re: [chrony-dev] [PATCH 2/3] refclock: Include TAI offset when adding samples

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Mon, Oct 9, 2017 at 5:34 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>> --- a/reference.c
>> +++ b/reference.c
>> @@ -1355,6 +1355,17 @@ int REF_IsLeapSecondClose(void)
>>  }
>>
>>  /* ================================================== */
>> +int REF_GetTaiOffset(void)
>
> This function should have a "struct timespec *ts" parameter. Reference
> time is independent from the local time and we want to get correct
> offset even if the local time is years behind (e.g. start with no
> RTC).
>
> After the return type there should be a line break.

Re this particular change, I was blindly following the format of
`REF_IsLeapSecondClose' which was immediately above it, rather than
looking at the rest of the file (which is in the style you pointed
out).

I updated it in the v2 I sent, but perhaps `REF_IsLeapSecondClose'
should be changed too (not in this patch set, but in general).

-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/