From 845cbaa9ffbfd6a1f7976a6c7f3e4461e4d41993 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 10 May 2022 22:57:13 +0930 Subject: sim: remove use of PTR PTR will soon disappear from ansidecl.h. Remove uses in sim. Where a PTR cast is used in assignment or function args to a void* I've simply removed the unnecessary (in C) cast rather than replacing with (void *). --- sim/rx/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/rx') diff --git a/sim/rx/trace.c b/sim/rx/trace.c index df83dc1..8d9293c 100644 --- a/sim/rx/trace.c +++ b/sim/rx/trace.c @@ -83,7 +83,7 @@ remove_useless_symbols (asymbol ** symbols, long count) } static int -compare_symbols (const PTR ap, const PTR bp) +compare_symbols (const void *ap, const void *bp) { const asymbol *a = *(const asymbol **) ap; const asymbol *b = *(const asymbol **) bp; -- cgit v1.1