From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Alejandro Colomar <colomar.6.4.3@gmail.com>
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org
Subject: Re: [PATCH] bsearch.3: Declare variables with different types in different lines
Date: Tue, 8 Sep 2020 07:26:31 +0200 [thread overview]
Message-ID: <0a63bbd8-2b84-8024-1896-1d6014e0f2f4@gmail.com> (raw)
In-Reply-To: <20200907212742.5980-1-colomar.6.4.3@gmail.com>
On 9/7/20 11:27 PM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
> ---
> man3/bsearch.3 | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Thanks, Alex. Patch applied.
Cheers,
Michael
> diff --git a/man3/bsearch.3 b/man3/bsearch.3
> index 9d4f76da5..c429e4ac1 100644
> --- a/man3/bsearch.3
> +++ b/man3/bsearch.3
> @@ -124,7 +124,9 @@ main(int argc, char **argv)
> {
> qsort(months, nr_of_months, sizeof(months[0]), compmi);
> for (int i = 1; i < argc; i++) {
> - struct mi key, *res;
> + struct mi key;
> + struct mi *res;
> +
> key.name = argv[i];
> res = bsearch(&key, months, nr_of_months,
> sizeof(months[0]), compmi);
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
prev parent reply other threads:[~2020-09-08 5:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 21:27 [PATCH] bsearch.3: Declare variables with different types in different lines Alejandro Colomar
2020-09-08 5:26 ` 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=0a63bbd8-2b84-8024-1896-1d6014e0f2f4@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=colomar.6.4.3@gmail.com \
--cc=linux-man@vger.kernel.org \
/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