diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-05-05 21:07:41 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-05-05 21:07:41 +0000 |
commit | 4c169b8a996bf50ed843c8ddc926a5e1530923be (patch) | |
tree | a066c529a8a8b14a891d9ed1816a982d8061aead /serial/manager.c | |
parent | fd18cec597d56cb2ad322ba04c5ed1b5516f7df3 (diff) |
serial: cleanup
Diffstat (limited to 'serial/manager.c')
-rw-r--r-- | serial/manager.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/serial/manager.c b/serial/manager.c index e03e9b01..dc612b12 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -76,8 +76,6 @@ struct pending_connect { char *pattern; /* Connection request pattern */ bdaddr_t src; uint8_t channel; - guint io_id; /* GIOChannel watch id */ - GIOChannel *io; /* GIOChannel for RFCOMM connect */ char *dev; /* tty device name */ int id; /* RFCOMM device id */ int ntries; /* Open attempts */ @@ -154,12 +152,6 @@ static void pending_connect_free(struct pending_connect *pc) g_free(pc->adapter_path); if (pc->dev) g_free(pc->dev); - if (pc->io_id > 0) - g_source_remove(pc->io_id); - if (pc->io) { - g_io_channel_close(pc->io); - g_io_channel_unref(pc->io); - } g_free(pc); } |