From 1316fe09139c581ea268c9d2c4f7600042827357 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 27 Jul 2020 16:46:55 +0200 Subject: [PATCH] buffer: keep original behaviour --- common/include/villas/buffer.hpp | 2 +- common/include/villas/json_buffer.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/include/villas/buffer.hpp b/common/include/villas/buffer.hpp index 7792cf8f3..0fc4fa5f1 100644 --- a/common/include/villas/buffer.hpp +++ b/common/include/villas/buffer.hpp @@ -48,7 +48,7 @@ public: int parseJson(json_t **j); - int appendJson(json_t *j, int flags = JSON_INDENT(4)); + int appendJson(json_t *j, int flags = 0); }; } /* namespace villas */ diff --git a/common/include/villas/json_buffer.hpp b/common/include/villas/json_buffer.hpp index 260afab14..187561aee 100644 --- a/common/include/villas/json_buffer.hpp +++ b/common/include/villas/json_buffer.hpp @@ -39,7 +39,7 @@ protected: public: /** Encode JSON document /p j and append it to the buffer */ - int encode(json_t *j, int flags = JSON_INDENT(4)); + int encode(json_t *j, int flags = 0); /** Decode JSON document from the beginning of the buffer */ json_t * decode();