* ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap

second and third arguments.
	* ser-tcp.c (_initialize_ser_tcp): Likewise.
	* ser-unix.c (_initialize_ser_hardwire): Likewise.
This commit is contained in:
Ian Lance Taylor 2003-05-13 19:40:11 +00:00
parent 87a45149d4
commit 2fdbdd3980
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2003-05-13 Ian Lance Taylor <ian@airs.com>
* ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
second and third arguments.
* ser-tcp.c (_initialize_ser_tcp): Likewise.
* ser-unix.c (_initialize_ser_hardwire): Likewise.
2003-05-13 Andrew Cagney <cagney@redhat.com>
* defs.h (store_address): Delete declaration.

View File

@ -138,7 +138,7 @@ void
_initialize_ser_pipe (void)
{
struct serial_ops *ops = XMALLOC (struct serial_ops);
memset (ops, sizeof (struct serial_ops), 0);
memset (ops, 0, sizeof (struct serial_ops));
ops->name = "pipe";
ops->next = 0;
ops->open = pipe_open;

View File

@ -208,7 +208,7 @@ void
_initialize_ser_tcp (void)
{
struct serial_ops *ops = XMALLOC (struct serial_ops);
memset (ops, sizeof (struct serial_ops), 0);
memset (ops, 0, sizeof (struct serial_ops));
ops->name = "tcp";
ops->next = 0;
ops->open = net_open;

View File

@ -1337,7 +1337,7 @@ void
_initialize_ser_hardwire (void)
{
struct serial_ops *ops = XMALLOC (struct serial_ops);
memset (ops, sizeof (struct serial_ops), 0);
memset (ops, 0, sizeof (struct serial_ops));
ops->name = "hardwire";
ops->next = 0;
ops->open = hardwire_open;