Jan Kiszka wrote:
> xenomai-git-requ...@gna.org wrote:
>> Module: xenomai-2.5
>> Branch: master
>> Commit: edaf1e2e54343b6e4bf5cf6ece9175ec0ab21cad
>> URL:    
>> http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=edaf1e2e54343b6e4bf5cf6ece9175ec0ab21cad
>>
>> Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
>> Date:   Sun Aug 22 15:37:11 2010 +0200
>>
>> Do not assume that XN_NO_HANDLE is NULL
>>
>> ---
>>
>>  src/skins/common/current.c |    1 +
>>  src/skins/native/mutex.c   |    4 ++--
>>  2 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/skins/common/current.c b/src/skins/common/current.c
>> index 7f36991..4e75690 100644
>> --- a/src/skins/common/current.c
>> +++ b/src/skins/common/current.c
>> @@ -46,6 +46,7 @@ static inline int create_current_key(void)
>>  
>>  static inline void __xeno_set_current(xnhandle_t current)
>>  {
>> +    current = (current == XN_NO_HANDLE ? current : (xnhandle_t)(0));
> 
> I think you meant "!=" here.

Yes, thanks. The slow version makes it working...

-- 
                                            Gilles.

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to