From 652aaa2406a6b38bf38fdeb6aba975b7825f9f2d Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 8 Aug 2007 22:12:35 +0000 Subject: 2007-08-08 Jan Kratochvil * serial.c (serial_open): Fix the OPEN parameter macro expansion. --- gdb/serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/serial.c') diff --git a/gdb/serial.c b/gdb/serial.c index 2025527..cefec8d 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -213,7 +213,8 @@ serial_open (const char *name) scb->bufp = scb->buf; scb->error_fd = -1; - if (scb->ops->open (scb, open_name)) + /* `...->open (...)' would get expanded by an the open(2) syscall macro. */ + if ((*scb->ops->open) (scb, open_name)) { xfree (scb); return NULL; -- cgit v1.1