From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Tafelmeier Subject: [PATCH v7 10/10] ss: activate json_writer excluded logic Date: Thu, 10 Sep 2015 21:35:08 +0200 Message-ID: <1441913708-15532-11-git-send-email-matthias.tafelmeier@gmx.net> References: <1441913708-15532-1-git-send-email-matthias.tafelmeier@gmx.net> Cc: hagen@jauu.net, shemminger@osdl.org, fw@strlen.de, edumazet@google.com, daniel@iogearbox.net To: netdev@vger.kernel.org Return-path: Received: from mout.gmx.net ([212.227.17.20]:62574 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbbIJTfl (ORCPT ); Thu, 10 Sep 2015 15:35:41 -0400 In-Reply-To: <1441913708-15532-1-git-send-email-matthias.tafelmeier@gmx.net> Sender: netdev-owner@vger.kernel.org List-ID: This small patch extends the lib json_writer module for formerly deactivated functionality. Signed-off-by: Matthias Tafelmeier --- include/json_writer.h | 1 + lib/json_writer.c | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/json_writer.h b/include/json_writer.h index ab9a008..3e2bbff 100644 --- a/include/json_writer.h +++ b/include/json_writer.h @@ -15,6 +15,7 @@ #ifndef _JSON_WRITER_H_ #define _JSON_WRITER_H_ +#include #include #include diff --git a/lib/json_writer.c b/lib/json_writer.c index 2af16e1..dfed4d7 100644 --- a/lib/json_writer.c +++ b/lib/json_writer.c @@ -12,7 +12,6 @@ * Authors: Stephen Hemminger */ -#include #include #include #include @@ -201,7 +200,6 @@ void jsonw_bool(json_writer_t *self, bool val) jsonw_printf(self, "%s", val ? "true" : "false"); } -#ifdef notused void jsonw_null(json_writer_t *self) { jsonw_printf(self, "null"); @@ -211,7 +209,6 @@ void jsonw_float(json_writer_t *self, double num) { jsonw_printf(self, "%g", num); } -#endif void jsonw_uint(json_writer_t *self, uint64_t num) { @@ -236,13 +233,11 @@ void jsonw_bool_field(json_writer_t *self, const char *prop, bool val) jsonw_bool(self, val); } -#ifdef notused void jsonw_float_field(json_writer_t *self, const char *prop, double val) { jsonw_name(self, prop); jsonw_float(self, val); } -#endif void jsonw_uint_field(json_writer_t *self, const char *prop, uint64_t num) { @@ -256,13 +251,11 @@ void jsonw_int_field(json_writer_t *self, const char *prop, int64_t num) jsonw_int(self, num); } -#ifdef notused void jsonw_null_field(json_writer_t *self, const char *prop) { jsonw_name(self, prop); jsonw_null(self); } -#endif #ifdef TEST int main(int argc, char **argv) -- 1.9.1