[v5,06/35] add_key.2: Remove unused include

Message ID 20210404115847.78166-7-alx.manpages@gmail.com
State New
Headers show
Series
  • Untitled series #36389
Related show

Commit Message

<sys/types.h> was only needed for size_t, AFAIK.  That is already
(and more precisely) documented in system_data_types(7).  Let's
remove it here, as it's not really needed for calling add_key().

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

---
 man2/add_key.2 | 1 -
 1 file changed, 1 deletion(-)

-- 
2.31.0

Comments

Hi Alex,

On 4/4/21 1:58 PM, Alejandro Colomar wrote:
> <sys/types.h> was only needed for size_t, AFAIK.  That is already

> (and more precisely) documented in system_data_types(7).  Let's

> remove it here, as it's not really needed for calling add_key().

> 

> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>


Patch applied.

Thanks,

Michael

> ---

>  man2/add_key.2 | 1 -

>  1 file changed, 1 deletion(-)

> 

> diff --git a/man2/add_key.2 b/man2/add_key.2

> index f3d803adf..dca44b8e7 100644

> --- a/man2/add_key.2

> +++ b/man2/add_key.2

> @@ -14,7 +14,6 @@

>  add_key \- add a key to the kernel's key management facility

>  .SH SYNOPSIS

>  .nf

> -.B #include <sys/types.h>

>  .B #include <keyutils.h>

>  .PP

>  .BI "key_serial_t add_key(const char *" type ", const char *" description ,

> 



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
Hello Alex,

On 4/4/21 1:58 PM, Alejandro Colomar wrote:
> <sys/types.h> was only needed for size_t, AFAIK.  That is already

> (and more precisely) documented in system_data_types(7).  Let's

> remove it here, as it's not really needed for calling add_key().

> 

> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>


Thanks. Patch applied.

Cheers,

Michael

> ---

>  man2/add_key.2 | 1 -

>  1 file changed, 1 deletion(-)

> 

> diff --git a/man2/add_key.2 b/man2/add_key.2

> index f3d803adf..dca44b8e7 100644

> --- a/man2/add_key.2

> +++ b/man2/add_key.2

> @@ -14,7 +14,6 @@

>  add_key \- add a key to the kernel's key management facility

>  .SH SYNOPSIS

>  .nf

> -.B #include <sys/types.h>

>  .B #include <keyutils.h>

>  .PP

>  .BI "key_serial_t add_key(const char *" type ", const char *" description ,

> 



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

Patch

diff --git a/man2/add_key.2 b/man2/add_key.2
index f3d803adf..dca44b8e7 100644
--- a/man2/add_key.2
+++ b/man2/add_key.2
@@ -14,7 +14,6 @@ 
 add_key \- add a key to the kernel's key management facility
 .SH SYNOPSIS
 .nf
-.B #include <sys/types.h>
 .B #include <keyutils.h>
 .PP
 .BI "key_serial_t add_key(const char *" type ", const char *" description ,