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-unix.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-unix.c')
-rw-r--r-- | gdb/ser-unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index f7ab28a..e7a5d93 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -1337,7 +1337,7 @@ void _initialize_ser_hardwire (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 = "hardwire"; ops->next = 0; ops->open = hardwire_open; |