On 9/5/20 1:00 PM, Alejandro Colomar wrote: > Casting `int *` to `const void *` is already done implicitly. > Not only that, but the explicit cast to `void *` was slightly > misleading. > > Signed-off-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx> > --- > man3/tsearch.3 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/man3/tsearch.3 b/man3/tsearch.3 > index 65fcadc52..05d0b2170 100644 > --- a/man3/tsearch.3 > +++ b/man3/tsearch.3 > @@ -329,7 +329,7 @@ main(void) > for (i = 0; i < 12; i++) { > ptr = xmalloc(sizeof(*ptr)); > *ptr = rand() & 0xff; > - val = tsearch((void *) ptr, &root, compare); > + val = tsearch(ptr, &root, compare); > if (val == NULL) > exit(EXIT_FAILURE); > else if (*val != ptr) Thanks, Alex. Patch applied. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/