From c9747304271f63064687178938bf2a4060ef0180 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 17 Mar 2018 16:49:06 +0100 Subject: tools: Fix help information for oecho The oecho tool still used its old "echo-app" name in the usage() output. The destination name is also changed to oecho. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/tools/oecho/oecho.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tools/oecho') diff --git a/src/tools/oecho/oecho.c b/src/tools/oecho/oecho.c index 3896a85a..cc173988 100644 --- a/src/tools/oecho/oecho.c +++ b/src/tools/oecho/oecho.c @@ -47,13 +47,13 @@ static void usage(void) { - printf("Usage: echo-app [OPTION]...\n" + printf("Usage: oecho [OPTION]...\n" "Sends an echo between a server and a client\n\n" " -l, --listen Run in server mode\n" " --help Display this help text and exit\n"); } -int server_main(void) +static int server_main(void) { int fd = 0; char buf[BUF_SIZE]; @@ -91,14 +91,14 @@ int server_main(void) return 0; } -int client_main(void) +static int client_main(void) { int fd = 0; char buf[BUF_SIZE]; char * message = "Client says hi!"; ssize_t count = 0; - fd = flow_alloc("echo", NULL, NULL); + fd = flow_alloc("oecho", NULL, NULL); if (fd < 0) { printf("Failed to allocate flow.\n"); return -1; -- cgit v1.2.3