diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-03-17 16:49:06 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-03-19 10:29:09 +0100 |
commit | c9747304271f63064687178938bf2a4060ef0180 (patch) | |
tree | 4b13c19e381948e7041ba4a78d24b8245f0f7172 /src | |
parent | a6a83171d5c7d09301ffd52ac9ea5c67758714ee (diff) | |
download | ouroboros-c9747304271f63064687178938bf2a4060ef0180.tar.gz ouroboros-c9747304271f63064687178938bf2a4060ef0180.zip |
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 <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/oecho/oecho.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |