Re: [chrony-dev] [PATCH] Support multiple extpps refclocks on a single PHC device

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


Should be
> 
> +  phc->path = Malloc(strlen(path) + 1);

> On 20/02/2023, at 6:23 PM, Matt Corallo <ntp-lists@xxxxxxxxxxxxxxx> wrote:
> 
> 
> @@ -75,6 +89,9 @@ static int phc_initialise(RCL_Instance instance)
> phc->nocrossts = RCL_GetDriverOption(instance, "nocrossts") ? 1 : 0;
> phc->extpps = RCL_GetDriverOption(instance, "extpps") ? 1 : 0;
> 
> +  phc->path = Malloc(strlen(path));
> +  strcpy(phc->path, path);
> +
> phc->clock = HCL_CreateInstance(0, 16, UTI_Log2ToDouble(RCL_GetDriverPoll(instance)),
>                                 RCL_GetPrecision(instance));
> 



Bryan Christianson
bryan@xxxxxxxxxxxxx




--
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/