diff options
| author | Ulf Hermann <[email protected]> | 2017-04-20 15:40:46 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-04-26 00:17:11 +0200 |
| commit | 4159aa62cca90f4640784636dc7a3db07ef1133a (patch) | |
| tree | 9243954998f8a206f557e6db6cded23ebf3c7512 | |
| parent | 9c1509abe9f3934746b04eff8d91f6f9d181f41d (diff) | |
Don't use comparison_fn_t
Not all search.h declare it, and it is not very helpful anyway.
Signed-off-by: Ulf Hermann <[email protected]>
| -rw-r--r-- | libcpu/ChangeLog | 4 | ||||
| -rw-r--r-- | libcpu/i386_parse.y | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog index 79110c22..ec22dd2e 100644 --- a/libcpu/ChangeLog +++ b/libcpu/ChangeLog @@ -1,3 +1,7 @@ +2017-04-20 Ulf Hermann <[email protected]> + + * i386_parse.y: Eliminate comparison_fn_t. + 2016-11-02 Mark Wielaard <[email protected]> * i386_disasm.c (i386_disasm): Add fallthrough comment. diff --git a/libcpu/i386_parse.y b/libcpu/i386_parse.y index 15a72b1f..5fc06825 100644 --- a/libcpu/i386_parse.y +++ b/libcpu/i386_parse.y @@ -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; } |
