This series include four patches around the utilisation of QIOChannel
features. The first patch actually fixes a bug, while the next two
makes the test/set of features consistent by using helper functions.
The last patch adds a test to verify that the bug has been fixed.

Changes from v2:
 - Add a test which fails on master but passes with these fixes
 - Rebase on latest master

Changes from v1:
 - Fix two pointer declarations (were missing a star)
 - Fix a call to _set_features() which should be _set_feature()

Felipe Franciosi (4):
  io: Fix double shift usages on QIOChannel features
  io: Use qio_channel_has_feature() where applicable
  io: Introduce a qio_channel_set_feature() helper
  io: Add a QIOChannelSocket cleanup test

 include/io/channel.h           |   16 +++++++++++++---
 io/channel-socket.c            |   12 +++++++-----
 io/channel-tls.c               |    4 ++--
 io/channel-websock.c           |    4 ++--
 io/channel.c                   |   11 +++++++++--
 tests/test-io-channel-socket.c |   33 +++++++++++++++++++++++++++++++++
 6 files changed, 66 insertions(+), 14 deletions(-)


Reply via email to