summaryrefslogtreecommitdiff
path: root/anteraja.c
diff options
context:
space:
mode:
Diffstat (limited to 'anteraja.c')
-rw-r--r--anteraja.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/anteraja.c b/anteraja.c
index b903548..d7e66c8 100644
--- a/anteraja.c
+++ b/anteraja.c
@@ -1,3 +1,6 @@
+#ifdef DEBUG
+#include <stdio.h>
+#endif
#include "shipping.h"
#include "handler.h"
@@ -36,6 +39,10 @@ size_t anteraja_services_handle(const char *contents, size_t size, size_t nmemb,
struct pikul_services **services)
{
size_t realsize = size * nmemb;
+#ifdef DEBUG
+ ((char *)contents)[realsize] = '\0';
+ fprintf(stderr, "%s\n", contents);
+#endif
handle_services(contents, realsize, status_trail, (const char *[]){
"content",
"services",