From: Alejandro Colomar Date: Sat, 5 Sep 2020 15:40:44 +0000 (+0200) Subject: tsearch.3: Remove unneeded cast X-Git-Tag: man-pages-5.09~440 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7e5aa83d27fa8fb189074e63d32bf97a4e970a6;p=thirdparty%2Fman-pages.git tsearch.3: Remove unneeded cast 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 Signed-off-by: Michael Kerrisk --- diff --git a/man3/tsearch.3 b/man3/tsearch.3 index 2e84031304..94209d2a26 100644 --- a/man3/tsearch.3 +++ b/man3/tsearch.3 @@ -329,7 +329,7 @@ main(void) for (int i = 0; i < 12; i++) { int *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 ((*(int **) val) != ptr)