X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fser-unix.c;h=38b6716d2eeb6fd66b03aa4672344ff8b70a109c;hb=0d5f99947baa22a5dda53be002c3885ffe311ca5;hp=f7ab28ae750d3ad0cddca1e5feec6d9c430001ec;hpb=2cd58942b9bf50ccde261085d8a2b3e7ced88e5e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index f7ab28ae75..38b6716d2e 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -1,6 +1,7 @@ /* Serial interface for local (hardwired) serial ports on Un*x like systems - Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 - Free Software Foundation, Inc. + + Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, + 2003, 2004 Free Software Foundation, Inc. This file is part of GDB. @@ -1324,7 +1325,7 @@ ser_unix_async (struct serial *scb, case FD_SCHEDULED: delete_file_handler (scb->fd); break; - NOTHING_SCHEDULED: + case NOTHING_SCHEDULED: break; default: /* TIMER SCHEDULED */ delete_timer (scb->async_state); @@ -1337,7 +1338,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;