[Xcb] [PATCH xpyb 00/10] Delete explicit comparison with NULL, fix coding style

Tapasweni Pathak tapaswenipathak at gmail.com
Sun Oct 12 21:47:19 PDT 2014


This patchset deletes explicit compariosn with NULL in C files of xpyb and
a minor 3 space coding style issue in file conn.c

if (pointer == NULL) is functionally equivalent to
if (!pointer).
    
Using the second will make it a bit obvious that there is a
pointer involved and not an integer or something.

Tapasweni Pathak (10):
  conn.c: Delete explicit comparison with NULL
  error.c: Delete explicit comparison with NULL
  event.c: Delete explicit comparison with NULL
  except.c: Delete explicit comparison with NULL
  ext.c: Delete explicit comparison with NULL
  iter.c: Delete explicit comparison with NULL
  list.c: Delete explicit comparison with NULL
  module.c: Delete explicit comparison with NULL
  protobj.c: Delete explicit comparison with NULL
  conn.c: Add space before a line

 src/conn.c    |   42 +++++++++++++++++++++---------------------
 src/error.c   |    4 ++--
 src/event.c   |    4 ++--
 src/except.c  |    8 ++++----
 src/ext.c     |    2 +-
 src/iter.c    |   12 ++++++------
 src/list.c    |   10 +++++-----
 src/module.c  |   16 ++++++++--------
 src/protobj.c |    2 +-
 9 files changed, 50 insertions(+), 50 deletions(-)

-- 
1.7.9.5



More information about the Xcb mailing list