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 | 2fdbdd39807558424c51dbbb1818e92598c5ce68 (patch) | |
tree | 8d7dfd78a80d3cdc7936393a5e3c4a0641e3ec6d /gdb/ser-pipe.c | |
parent | 87a45149d47c57316f628a68643835d9c2e3c592 (diff) | |
download | gdb-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-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 bca0e54..38f8e78 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; |