Commit 20f234a8 by Tom de Vries Committed by Tom de Vries

Fix bzero warning in child_setup_tty

2015-03-31  Tom de Vries  <tom@codesourcery.com>

	PR ada/65490
	* terminals.c (child_setup_tty): Fix warning 'argument to sizeof in
	bzero call is the same expression as the destination'.

From-SVN: r221789
parent b7e85ee1
2015-03-31 Tom de Vries <tom@codesourcery.com>
PR ada/65490
* terminals.c (child_setup_tty): Fix warning 'argument to sizeof in
bzero call is the same expression as the destination'.
2015-03-26 Eric Botcazou <ebotcazou@adacore.com> 2015-03-26 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: New case. * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: New case.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* * * *
* C Implementation File * * C Implementation File *
* * * *
* Copyright (C) 2008-2014, AdaCore * * Copyright (C) 2008-2015, AdaCore *
* * * *
* GNAT is free software; you can redistribute it and/or modify it under * * GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- * * terms of the GNU General Public License as published by the Free Soft- *
...@@ -1263,7 +1263,7 @@ child_setup_tty (int fd) ...@@ -1263,7 +1263,7 @@ child_setup_tty (int fd)
int status; int status;
/* ensure that s is filled with 0 */ /* ensure that s is filled with 0 */
bzero (&s, sizeof (&s)); bzero (&s, sizeof (s));
/* Get the current terminal settings */ /* Get the current terminal settings */
status = tcgetattr (fd, &s); status = tcgetattr (fd, &s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment