Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [patch] keyctl.2: declare auth_key
@ 2020-06-12 15:35 Oleksandr Kravchuk
  2020-06-19 12:50 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Oleksandr Kravchuk @ 2020-06-12 15:35 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, Oleksandr Kravchuk

The variable is used in the code example, but not declared, leading to
an expected compilation error:

    `error: ‘auth_key’ undeclared (first use in this function)`.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
---
 man2/keyctl.2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/man2/keyctl.2 b/man2/keyctl.2
index 3dea4266c..08ae92d6d 100644
--- a/man2/keyctl.2
+++ b/man2/keyctl.2
@@ -2103,6 +2103,7 @@ main(int argc, char *argv[])
     char dbuf[256];
     char auth_key_payload[256];
     int akp_size;       /* Size of auth_key_payload */
+    int auth_key;
 
     fp = fopen("/tmp/key_instantiate.log", "w");
     if (fp == NULL)
-- 
2.17.1


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

* Re: [patch] keyctl.2: declare auth_key
  2020-06-12 15:35 [patch] keyctl.2: declare auth_key Oleksandr Kravchuk
@ 2020-06-19 12:50 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-06-19 12:50 UTC (permalink / raw)
  To: Oleksandr Kravchuk; +Cc: mtk.manpages, linux-man

Hello Oleksandr

On 6/12/20 5:35 PM, Oleksandr Kravchuk wrote:
> The variable is used in the code example, but not declared, leading to
> an expected compilation error:
> 
>     `error: ‘auth_key’ undeclared (first use in this function)`.
> 
> Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>

Thanks. Patch applied.

Cheers,

Michael

> ---
>  man2/keyctl.2 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/man2/keyctl.2 b/man2/keyctl.2
> index 3dea4266c..08ae92d6d 100644
> --- a/man2/keyctl.2
> +++ b/man2/keyctl.2
> @@ -2103,6 +2103,7 @@ main(int argc, char *argv[])
>      char dbuf[256];
>      char auth_key_payload[256];
>      int akp_size;       /* Size of auth_key_payload */
> +    int auth_key;
>  
>      fp = fopen("/tmp/key_instantiate.log", "w");
>      if (fp == NULL)
> 


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

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-12 15:35 [patch] keyctl.2: declare auth_key Oleksandr Kravchuk
2020-06-19 12:50 ` Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git