On 06/01/2009 10:35 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
K functions expect a pointer to pv_spec_t and now a pv_spec_t** is returned when fixup_pvar() is used. fparam_t.v.pvs is a pv_spec_t* and the *param (from fixup call) is filled with &fparam_t.v.
A solution would be to add a void *fixed_param to fparam_t that is either set to &fparam_t.v or to a filed insind 'u' union, and this one is used to fill the 'param'.
i hope that not all modules that accept pv arguments would need to be updated. let me know when this works and i'll resume my tests.
Here is a patch that should fix, if you want to test.
Cheers, Daniel