public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] devctl.h: Fix typo and include proper header
@ 2017-01-25  6:39 Sebastian Huber
  2017-01-25 11:38 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2017-01-25  6:39 UTC (permalink / raw)
  To: newlib; +Cc: Sebastian Huber

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] devctl.h: Fix typo and include proper header
  2017-01-25  6:39 [PATCH] devctl.h: Fix typo and include proper header Sebastian Huber
@ 2017-01-25 11:38 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2017-01-25 11:38 UTC (permalink / raw)
  To: newlib

[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-25 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-25  6:39 [PATCH] devctl.h: Fix typo and include proper header Sebastian Huber
2017-01-25 11:38 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).