linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org
Subject: Re: [patch] keyctl.2: declare auth_key
Date: Fri, 19 Jun 2020 14:50:13 +0200	[thread overview]
Message-ID: <e3e6fa75-1371-3f14-f861-e75f548f4400@gmail.com> (raw)
In-Reply-To: <20200612153533.23783-1-open.source@oleksandr-kravchuk.com>

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/

      reply	other threads:[~2020-06-19 12:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-12 15:35 [patch] keyctl.2: declare auth_key Oleksandr Kravchuk
2020-06-19 12:50 ` Michael Kerrisk (man-pages) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e3e6fa75-1371-3f14-f861-e75f548f4400@gmail.com \
    --to=mtk.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=open.source@oleksandr-kravchuk.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).