* [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 related [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, other threads:[~2020-06-19 12:50 UTC | newest]
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)
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 NNTP newsgroup(s).