From 82154b9a466d252bfa68e5915574bf0b3fab93ed Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Fri, 13 Sep 2013 10:26:38 -0400 Subject: [PATCH] Cosmetic changes in C modules --- owlps-aggregator/owlps-aggregatord.c | 4 ++-- owlps-client/owlps-client.c | 9 ++++++--- owlps-listener/owlps-listenerd.c | 6 +++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/owlps-aggregator/owlps-aggregatord.c b/owlps-aggregator/owlps-aggregatord.c index 7c64788..2d64258 100644 --- a/owlps-aggregator/owlps-aggregatord.c +++ b/owlps-aggregator/owlps-aggregatord.c @@ -1618,8 +1618,8 @@ void print_usage() void print_version() { - printf("This is OwlPS Aggregator, part of the Owl" - " Positioning System project.\n" + printf("This is OwlPS Aggregator, part of the Owl Positioning System" + " project.\n" "Version: %s.\n", #ifdef OWLPS_VERSION OWLPS_VERSION diff --git a/owlps-client/owlps-client.c b/owlps-client/owlps-client.c index 8dfdb56..5b5c1ca 100644 --- a/owlps-client/owlps-client.c +++ b/owlps-client/owlps-client.c @@ -126,6 +126,8 @@ int main(int argc, char *argv[]) // Number of requests we still have to transmit: uint_fast16_t nb_requests_left = 1 ; + owl_run = true ; + program_name = argv[0] ; parse_command_line(argc, argv) ; @@ -727,7 +729,8 @@ void print_usage() " The\n\t\t\toptional argument allows to specify the" " listening\n\t\t\tport (default: %d). Available only if the" " program was\n\t\t\tcompiled with the compilation-time option" - "\n\t\t\tOWLPS_CLIENT_RECEIVES_POSITION.\n", + "\n\t\t\tOWLPS_CLIENT_RECEIVES_POSITION.\n" + , program_name, program_name, OWL_DEFAULT_REQUEST_PORT, @@ -743,8 +746,8 @@ void print_usage() void print_version() { - printf("This is OwlPS Client, part of the Owl" - " Positioning System project.\n" + printf("This is OwlPS Client, part of the Owl Positioning System" + " project.\n" "Version: %s.\n" "Compilation-time options:\n" "\tOption -l: %s.\n", diff --git a/owlps-listener/owlps-listenerd.c b/owlps-listener/owlps-listenerd.c index 509895c..d585a00 100644 --- a/owlps-listener/owlps-listenerd.c +++ b/owlps-listener/owlps-listenerd.c @@ -576,7 +576,7 @@ int parse_main_options(int argc, char **argv) #else // OWLPS_LISTENER_KEEPS_MONITOR fprintf(stderr, "Warning! The program was compiled without" " enabling the -K option (monitor mode keeping-up)." - ".\n") ; + "\n") ; #endif // OWLPS_LISTENER_KEEPS_MONITOR break ; case 'l' : @@ -1845,8 +1845,8 @@ void print_usage() void print_version() { - printf("This is OwlPS Listener, part of the Owl Positioning" - " System project.\n" + printf("This is OwlPS Listener, part of the Owl Positioning System" + " project.\n" "Version: %s.\n" "Compilation-time options:\n" "\tSupport for configuration file (libconfuse): %s.\n"