diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-27 14:47:38 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-28 17:27:32 -0500 |
commit | c614254ae994a54dca564ca120e5602557f0b707 (patch) | |
tree | 4df538a32a15541792826447a636b768cbeaa52c | |
parent | 2d2bc8b5b3d83032c775ee3d50ceb724df11a245 (diff) | |
download | ofono-c614254ae994a54dca564ca120e5602557f0b707.tar.bz2 |
gatio: Style fix for gsource id comparisons
-rw-r--r-- | gatchat/gatio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatio.c b/gatchat/gatio.c index 1aa23344..55a58491 100644 --- a/gatchat/gatio.c +++ b/gatchat/gatio.c @@ -228,7 +228,7 @@ void g_at_io_unref(GAtIO *io) * destroyed already. We have to wait until the read_watcher * destroy function gets called */ - if (io->read_watch != 0) + if (io->read_watch > 0) io->destroyed = TRUE; else g_free(io); @@ -239,7 +239,7 @@ gboolean g_at_io_shutdown(GAtIO *io) if (io->channel == NULL) return FALSE; - if (io->read_watch) + if (io->read_watch > 0) g_source_remove(io->read_watch); return TRUE; |