diff options
Diffstat (limited to 'gdb/serial.c')
-rw-r--r-- | gdb/serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |