From: Tom Tromey Date: Wed, 13 Aug 2025 18:08:59 +0000 (-0600) Subject: Remove cast from captured_main X-Git-Tag: gdb-17-branchpoint~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73dcc5e15bad199afc9154af04c1ac4e7b486620;p=thirdparty%2Fbinutils-gdb.git Remove cast from captured_main captured_main takes a 'void *', but then immediately casts it to the correct type. There's no reason for this any more, the caller passes in the correct type. This patch cleans this up. Tested by rebuilding. --- diff --git a/gdb/main.c b/gdb/main.c index bb8ddc37c01..8c5ef99f819 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -1330,10 +1330,8 @@ captured_main_1 (struct captured_main_args *context) } static void -captured_main (void *data) +captured_main (captured_main_args *context) { - struct captured_main_args *context = (struct captured_main_args *) data; - captured_main_1 (context); /* NOTE: cagney/1999-11-07: There is probably no reason for not