public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <colomar.6.4.3@gmail.com>
To: Walter Harms <wharms@bfs.de>
Cc: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>,
	"linux-man@vger.kernel.org" <linux-man@vger.kernel.org>
Subject: Re: AW: [PATCH v2] tsearch.3: Simplify type usage and remove unneeded casts
Date: Tue, 8 Sep 2020 10:30:11 +0200	[thread overview]
Message-ID: <f94a16f3-9546-987c-f7fe-30e7cfdb9720@gmail.com> (raw)
In-Reply-To: <16456ba5979244e0981c3764fd564c49@bfs.de>

Hello Walter,

On 2020-09-07 09:54, Walter Harms wrote:
> Hello,
> i am sorry to interrupt here but ...
> IMHO the void *val is here for a reason, because it means
> "this can be anything" the reason why int ** works here is
> that the example uses int. You make the example to specific
> in this case. may be the example from bsearch is better here.

I would say the example isn't clearer with `void *` and the cast; I see 
it OK as it is now.  But let's see what others think about it...

Cheers,

Alex.

      reply	other threads:[~2020-09-08  8:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-05 10:50 [PATCH] tsearch.3: Simplify type usage and remove unneeded casts Alejandro Colomar
2020-09-05 15:35 ` Michael Kerrisk (man-pages)
2020-09-05 15:41   ` Alejandro Colomar
2020-09-05 16:10     ` [PATCH v2] " Alejandro Colomar
2020-09-05 19:42       ` Michael Kerrisk (man-pages)
2020-09-07  7:54         ` AW: " Walter Harms
2020-09-08  8:30           ` Alejandro Colomar [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=f94a16f3-9546-987c-f7fe-30e7cfdb9720@gmail.com \
    --to=colomar.6.4.3@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    --cc=wharms@bfs.de \
    /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