]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use correct type for saved signal handler
authorTom Tromey <tom@tromey.com>
Mon, 16 Dec 2024 16:12:48 +0000 (09:12 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 16 Dec 2024 20:16:04 +0000 (13:16 -0700)
commit7a8cc0983ae3b954cba68dc874b0b0e738347e79
treeed8f64faecb0afa2e7d5860a4e13da9694a705f0
parent975cb893f45de2a927e226883e7a76ee5e333baa
Use correct type for saved signal handler

A user noticed that the sim assigns the result of a call to 'signal'
to a variable like:

  RETSIGTYPE (*prev_sigint) ();

However, it's more correct to use (int) here.

This patch fixes the error.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32466
Approved-By: Andrew Burgess <aburgess@redhat.com>
sim/common/dv-sockser.c
sim/common/nrun.c
sim/ppc/main.c