This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] pthread_once: Use futex wrappers with error checking.


> -  lll_futex_wake (once_control, INT_MAX, LLL_PRIVATE);
> +  futex_wake ((unsigned int *)once_control, INT_MAX, FUTEX_PRIVATE);

Always put a space after a cast.

> +	      ignore_value (futex_wait ((unsigned int *)once_control,
> +					(unsigned)newval, FUTEX_PRIVATE));

Ditto, and always 'unsigned int', never 'unsigned'.

> -      lll_futex_wake (once_control, INT_MAX, LLL_PRIVATE);
> +      futex_wake ((unsigned int *)once_control, INT_MAX, FUTEX_PRIVATE);

Space here too.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]