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-pipe.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-pipe.c')
-rw-r--r-- | gdb/ser-pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |