aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2003-05-13 19:40:11 +0000
committerIan Lance Taylor <ian@airs.com>2003-05-13 19:40:11 +0000
commit2fdbdd39807558424c51dbbb1818e92598c5ce68 (patch)
tree8d7dfd78a80d3cdc7936393a5e3c4a0641e3ec6d /gdb/ser-tcp.c
parent87a45149d47c57316f628a68643835d9c2e3c592 (diff)
downloadgdb-2fdbdd39807558424c51dbbb1818e92598c5ce68.zip
gdb-2fdbdd39807558424c51dbbb1818e92598c5ce68.tar.gz
gdb-2fdbdd39807558424c51dbbb1818e92598c5ce68.tar.bz2
* 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.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index c6ae19d..a9a8714 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;