[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH] Add check for semaphore kernel support



On 08/02/2010 09:42 PM +0100, Alasdair G Kergon wrote:
>> +static int _check_semaphore_is_supported()
> 
>> +	arg.array = (unsigned short int *) (void *) &seminfo;
> 
> Double cast?
> The way I read the man page that could be arg.__buf = &seminfo.

True :) OK, I'll use that...

Peter


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]