This changes the sim to use htab_eq_string from libiberty.
sim/common/ChangeLog
2021-05-08 Tom Tromey <tom@tromey.com>
* sim-options.c (compare_strings): Remove.
(dup_arg_p): Use htab_eq_string.
+2021-05-08 Tom Tromey <tom@tromey.com>
+
+ * sim-options.c (compare_strings): Remove.
+ (dup_arg_p): Use htab_eq_string.
+
2021-05-04 Mike Frysinger <vapier@gentoo.org>
* sim-hw.c (sim_hw_install): Rename to ...
return SIM_RC_OK;
}
-/* Equality function for arguments. */
-
-static int
-compare_strings (const void *a, const void *b)
-{
- return strcmp (a, b) == 0;
-}
-
/* Return non-zero if arg is a duplicate argument.
If ARG is NULL, initialize. */
{
if (arg_table == NULL)
arg_table = htab_create_alloc (10, htab_hash_string,
- compare_strings, NULL,
+ htab_eq_string, NULL,
xcalloc, free);
htab_empty (arg_table);
return 0;