Don't use comparison_fn_t

Not all search.h declare it, and it is not very helpful anyway.

Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Ulf Hermann
2017-04-20 15:40:46 +02:00
committed by Mark Wielaard
parent 9c1509abe9
commit 4159aa62cc
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -1,3 +1,7 @@
2017-04-20 Ulf Hermann <ulf.hermann@qt.io>
* i386_parse.y: Eliminate comparison_fn_t.
2016-11-02 Mark Wielaard <mjw@redhat.com>
* i386_disasm.c (i386_disasm): Add fallthrough comment.
+2 -2
View File
@@ -309,10 +309,10 @@ instr: bytes ':' bitfieldopt kID bitfieldopt optargs
newp->mnemonic = $4;
if (newp->mnemonic != (void *) -1l
&& tfind ($4, &mnemonics,
(comparison_fn_t) strcmp) == NULL)
(int (*)(const void *, const void *)) strcmp) == NULL)
{
if (tsearch ($4, &mnemonics,
(comparison_fn_t) strcmp) == NULL)
(int (*)(const void *, const void *)) strcmp) == NULL)
error (EXIT_FAILURE, errno, "tsearch");
++nmnemonics;
}