summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/json.c b/src/json.c
index 47ca27b..6d74b24 100644
--- a/src/json.c
+++ b/src/json.c
@@ -26,7 +26,6 @@
#include "protocol-constants.h"
#include "requests.h"
#include "dispatch.h"
-#include "http.h"
#include "json.h"
gchar *trg_serialize(JsonNode * req)
@@ -44,7 +43,7 @@ gchar *trg_serialize(JsonNode * req)
return response;
}
-JsonObject *trg_deserialize(struct http_response * response,
+JsonObject *trg_deserialize(trg_http_response * response,
GError ** error)
{
JsonParser *parser;
@@ -58,7 +57,7 @@ JsonObject *trg_deserialize(struct http_response * response,
root = json_parser_get_root(parser);
#ifdef DEBUG
if (g_getenv("TRG_SHOW_INCOMING") != NULL) {
- g_debug("<=(incoming)<=:\n%s\n", response->data);
+ g_debug("<=(incoming)<=:\n%s", response->data);
} else if (g_getenv("TRG_SHOW_INCOMING_PRETTY") != NULL) {
JsonGenerator *pg;
gsize len;