[Ada] replace call to bzero in terminals.c by call to memset
authorJoel Brobecker <brobecker@adacore.com>
Fri, 11 Mar 2022 04:22:15 +0000 (04:22 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 16 May 2022 08:42:05 +0000 (08:42 +0000)
commitdec636b831a286ab9f7773364a6f0cedf08ac9c0
treefed77556c3cccde0192df20c0ce8e9a14a9d7b05
parent21f8b410511d1ee9a46b7a902a368762f6256ea0
[Ada] replace call to bzero in terminals.c by call to memset

bzero is marked as legacy in POSIX.1-2001, and using it triggers a
deprecation warnings on some systems such as QNX. This change adjusts
the one place where we use it in terminals.c to use memset instead.
This, in turns, allows us to get rid of a hack for HP/UX and Solaris.

gcc/ada/

* terminals.c: Remove bzero #define on HP/UX or Solaris
platforms.
(child_setup_tty): Replace bzero call by equivalent call to
memset.
gcc/ada/terminals.c