summaryrefslogtreecommitdiff
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
commitaa7446e47fecb8f3b85c8c98c37d486abec49d91 (patch)
tree20e2700270fbd7fed8b96b815f229fa417c54758 /gdb/ser-tcp.c
parenta9fd8ad8b34d2607ef9f23c8a82a7f51456a8bf0 (diff)
downloadgdb-aa7446e47fecb8f3b85c8c98c37d486abec49d91.tar.gz
* 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 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;