mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-18 17:24:31 -04:00
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:
committed by
Mark Wielaard
parent
9c1509abe9
commit
4159aa62cc
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user