aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-09-03 18:45:51 +0200
committerLuca Deri <deri@ntop.org>2019-09-03 18:45:51 +0200
commit3d21c334094153d04b614656134e023ce0c7b5db (patch)
tree5afcafeec0d2a14d513e65a7e467d08a63d7aafa
parentb3c88a7e24ae2e1d2a7d6a98348f40135dd09681 (diff)
Compilation fix when JSON-C is not present
-rw-r--r--example/ndpiReader.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 74e28a094..d0c46d43e 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -73,12 +73,10 @@ static char *_statsFilePath = NULL; /**< Top stats file path */
static char *_diagnoseFilePath = NULL; /**< Top stats file path */
static char *_jsonFilePath = NULL; /**< JSON file path */
static FILE *stats_fp = NULL; /**< for Top Stats JSON file */
-static FILE *csv_fp = NULL; /**< for CSV export */
-#endif
-#ifdef HAVE_JSON_C
static json_object *jArray_known_flows = NULL, *jArray_unknown_flows = NULL;
static json_object *jArray_topStats = NULL;
#endif
+static FILE *csv_fp = NULL; /**< for CSV export */
static u_int8_t live_capture = 0;
static u_int8_t undetected_flows_deleted = 0;
/** User preferences **/