[PATCH 0/3] Handle API change in json-c for error returns

Colin King colin.king at canonical.com
Sun Oct 14 21:16:05 UTC 2012


From: Colin Ian King <colin.king at canonical.com>

The json-c library now returns NULL for object pointers when
an error occurs, older versions sometimes returned a 
((json_object*)-1) on some of the json functions.  To make error
checking easier across different versions of json-c we now
add a macro to hide this implementation detail away.

Colin Ian King (3):
  lib: fwts_json: wrapper for json error returns
  lib: fwts_klog: use FWTS_JSON_ERROR macro for error checking
  acpi: syntaxcheck: use FWTS_JSON_ERROR macro for error checking

 src/acpi/syntaxcheck/syntaxcheck.c |   14 ++++++++------
 src/lib/include/fwts.h             |    1 +
 src/lib/include/fwts_json.h        |   34 ++++++++++++++++++++++++++++++++++
 src/lib/src/fwts_klog.c            |   14 ++++++++------
 4 files changed, 51 insertions(+), 12 deletions(-)
 create mode 100644 src/lib/include/fwts_json.h

-- 
1.7.10.4




More information about the fwts-devel mailing list