From 9c3c6295a85a03fdad9a77799e85289ce65a109b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 28 Jan 2015 20:53:21 +0100 Subject: even cleaner separation of PostGres-specific logic, and nicer libtalerutil headers --- src/util/json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/json.c') diff --git a/src/util/json.c b/src/util/json.c index 252def39..f686d84a 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -13,13 +13,11 @@ You should have received a copy of the GNU General Public License along with TALER; see the file COPYING. If not, If not, see */ - /** * @file util/json.c * @brief helper functions for JSON processing using libjansson * @author Sree Harsha Totakura */ - #include "platform.h" #include #include "taler_util.h" @@ -49,6 +47,7 @@ if (cond) { WARN_JSON(error); goto EXITIF_exit; } \ } while (0) + /** * Convert a TALER amount to a JSON * object. @@ -60,6 +59,7 @@ json_t * TALER_JSON_from_amount (struct TALER_Amount amount) { json_t *j; + j = json_pack ("{s: s, s:I, s:I}", "currency", amount.currency, "value", (json_int_t) amount.value, -- cgit v1.2.3