This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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] devctl.h: Fix typo and include proper header


On Jan 25 07:13, Sebastian Huber wrote:
> Remove stray commas.  Include <sys/cdefs.h> for __restrict (includes
> <stddef.h> indirectly).
> 
> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
> ---
>  newlib/libc/include/devctl.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/newlib/libc/include/devctl.h b/newlib/libc/include/devctl.h
> index 13207ec..f6055fb 100644
> --- a/newlib/libc/include/devctl.h
> +++ b/newlib/libc/include/devctl.h
> @@ -37,14 +37,14 @@
>   */
>  
>  #ifdef _POSIX_26_C_SOURCE
> -#include <stddef.h>
> +#include <sys/cdefs.h>
>  
>  int posix_devctl(
> -  int               fd,
> -  int               dcmd,
> -  void *__restrict, dev_data_ptr,
> -  size_t            nbyte,
> -  int *__restrict,  dev_info_ptr
> +  int              fd,
> +  int              dcmd,
> +  void *__restrict dev_data_ptr,
> +  size_t           nbyte,
> +  int *__restrict  dev_info_ptr
>  );
>  #endif
>  
> -- 
> 1.8.4.5

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


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