[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 Mon, Aug 02, 2010 at 09:24:57PM +0200, Peter Rajnoha wrote:
> We also need to check for kernel semaphore support (part of System V IPC,

Ack.

> +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.

Alasdair


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