aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ser-pipe.c')
-rw-r--r--gdb/ser-pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c
index 1e777b7..1696eb8 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -148,7 +148,7 @@ pipe_open (struct serial *scb, const char *name)
static void
pipe_close (struct serial *scb)
{
- struct pipe_state *state = scb->state;
+ struct pipe_state *state = (struct pipe_state *) scb->state;
close (scb->fd);
scb->fd = -1;