From c2b7b52a5557e045829c1523a2eadba91621ea66 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Fri, 11 Mar 2011 13:35:30 +0100 Subject: [PATCH] [Listener] Fix autocalibration_ip defaulting autocalibration_ip was not set to its default value (aggregation_ip) if not set. --- infrastructure-centred/owlps-listener/owlps-listenerd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure-centred/owlps-listener/owlps-listenerd.c b/infrastructure-centred/owlps-listener/owlps-listenerd.c index 3d3dd39..3e6b91a 100644 --- a/infrastructure-centred/owlps-listener/owlps-listenerd.c +++ b/infrastructure-centred/owlps-listener/owlps-listenerd.c @@ -396,6 +396,7 @@ void check_configuration() fprintf(stderr, "No autocalibration IP specified, we will use" " the aggregation IP as the destination of" " autocalibration requests.\n") ; + SET_AUTOCALIBRATION_IP(GET_AGGREGATION_IP()) ; } // Port numbers // @@ -450,7 +451,7 @@ void print_configuration() #ifdef USE_PTHREAD "keep_monitor = %s\n" "autocalibration = %s\n" - "autocalibration_ip = %s\n" + "autocalibration_ip = \"%s\"\n" "autocalibration_request_port = %"PRIuFAST16"\n" "autocalibration_port = %"PRIuFAST16"\n" "autocalibration_hello_delay = %"PRIuFAST32"\n"