diff options
author | Ian Lance Taylor <ian@airs.com> | 2003-05-13 19:40:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2003-05-13 19:40:11 +0000 |
commit | aa7446e47fecb8f3b85c8c98c37d486abec49d91 (patch) | |
tree | 20e2700270fbd7fed8b96b815f229fa417c54758 /gdb/ser-tcp.c | |
parent | a9fd8ad8b34d2607ef9f23c8a82a7f51456a8bf0 (diff) | |
download | gdb-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.c | 2 |
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; |