[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] 11/11: json_dumpb() way better.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] 11/11: json_dumpb() way better. |
Date: |
Wed, 16 May 2018 10:42:06 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository twister.
commit 5ac6f8fd99df95071953c4c92947f4a28326cc39
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 16 10:29:29 2018 +0200
json_dumpb() way better.
---
src/twister/taler-twister-service.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/twister/taler-twister-service.c
b/src/twister/taler-twister-service.c
index cbe58b7..ea26ad0 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1259,10 +1259,12 @@ create_response (void *cls,
flip_object (con,
tmp,
flip_path_ul);
- /* No need to update 'io_len', as flipping a
- * bit does not change the data size. */
- hr->io_buf = json_dumps (tmp,
- JSON_COMPACT);
+
+ json_dumpb (tmp,
+ hr->io_buf,
+ hr->io_len, /* Existing io_len is enough to accomodate this
encoding. */
+ JSON_COMPACT);
+
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Flipped (?) upload object (%s)\n",
hr->io_buf);
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-twister] branch master updated (2e773e8 -> 5ac6f8f), gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 11/11: json_dumpb() way better.,
gnunet <=
- [GNUnet-SVN] [taler-twister] 06/11: dumping stringified flipped object into io_buf., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 09/11: debug stmt, gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 05/11: object "walker" is HttpResponse-agnostic., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 03/11: Bring difference into the service component., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 08/11: export "flippers" to the internal API., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 02/11: Differentiate between bit-flipping in download and upload., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 01/11: Walk objects.., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 10/11: do not use "tmp" buffer for response, gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 04/11: cosmetics., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 07/11: debug stmt, gnunet, 2018/05/16