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

Peter Rajnoha prajnoha at redhat.com
Tue Aug 3 07:05:12 UTC 2010


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




More information about the lvm-devel mailing list