From: Ian Lance Taylor Date: Tue, 13 May 2003 19:40:11 +0000 (+0000) Subject: * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fdbdd39807558424c51dbbb1818e92598c5ce68;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f667343f0b7..c6068d84403 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-05-13 Ian Lance Taylor + + * 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 * defs.h (store_address): Delete declaration. diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c index bca0e54e4ba..38f8e78949a 100644 --- a/gdb/ser-pipe.c +++ b/gdb/ser-pipe.c @@ -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; diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index c6ae19dab02..a9a87143cb3 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -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; diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index f7ab28ae750..e7a5d93cef5 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -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;