diff options
Diffstat (limited to 'src/tools/echo')
| -rw-r--r-- | src/tools/echo/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | src/tools/echo/echo.c | 3 | ||||
| -rw-r--r-- | src/tools/echo/echo_client.c | 5 | ||||
| -rw-r--r-- | src/tools/echo/echo_server.c | 5 | 
4 files changed, 11 insertions, 8 deletions
| diff --git a/src/tools/echo/CMakeLists.txt b/src/tools/echo/CMakeLists.txt index 42bcdbfe..7cecfe50 100644 --- a/src/tools/echo/CMakeLists.txt +++ b/src/tools/echo/CMakeLists.txt @@ -5,9 +5,9 @@ include_directories(${CMAKE_SOURCE_DIR}/include)  include_directories(${CMAKE_BINARY_DIR}/include)  set(SOURCE_FILES -        # Add source files here -        echo.c -) +  # Add source files here +  echo.c +  )  add_executable(echo-app ${SOURCE_FILES}) diff --git a/src/tools/echo/echo.c b/src/tools/echo/echo.c index 3dd7527b..051a16c3 100644 --- a/src/tools/echo/echo.c +++ b/src/tools/echo/echo.c @@ -3,7 +3,8 @@   *   * A simple echo application   * - *    Sander Vrijders <sander.vrijders@intec.ugent.be> + *    Dimitri Staessens <dimitri.staessens@ugent.be> + *    Sander Vrijders   <sander.vrijders@ugent.be>   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License version 2 as diff --git a/src/tools/echo/echo_client.c b/src/tools/echo/echo_client.c index 783188d5..f84de73a 100644 --- a/src/tools/echo/echo_client.c +++ b/src/tools/echo/echo_client.c @@ -3,7 +3,8 @@   *   * A simple echo application   * - *    Sander Vrijders <sander.vrijders@intec.ugent.be> + *    Dimitri Staessens <dimitri.staessens@ugent.be> + *    Sander Vrijders   <sander.vrijders@ugent.be>   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License version 2 as @@ -30,7 +31,7 @@ int client_main(void)          char * message  = "Client says hi!";          ssize_t count = 0; -        fd = flow_alloc("echo", NULL, NULL); +        fd = flow_alloc("echo", NULL);          if (fd < 0) {                  printf("Failed to allocate flow.\n");                  return -1; diff --git a/src/tools/echo/echo_server.c b/src/tools/echo/echo_server.c index 8940a0b5..aa136485 100644 --- a/src/tools/echo/echo_server.c +++ b/src/tools/echo/echo_server.c @@ -3,7 +3,8 @@   *   * A simple echo application   * - *    Sander Vrijders <sander.vrijders@intec.ugent.be> + *    Dimitri Staessens <dimitri.staessens@ugent.be> + *    Sander Vrijders   <sander.vrijders@ugent.be>   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License version 2 as @@ -50,7 +51,7 @@ int server_main(void)          }          while (true) { -                client_fd = flow_accept(NULL, &qs); +                client_fd = flow_accept(&qs);                  if (client_fd < 0) {                          printf("Failed to accept flow.\n");                          break; | 
