From d68325d28aad482a92f5e3777908cafad168cad3 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 1 Dec 2020 19:54:14 +0100 Subject: [PATCH] Removed unnecessary function parameter --- src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index c4b1cf4..1033d8b 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -209,7 +209,7 @@ long getPosition(std::string str, char c, int occurence) { return -1; } -int websocket_handler(Socket *socket, pid_t *childpid, stds *pipes) { +int websocket_handler(Socket *socket, stds *pipes) { fd_set readfd; int maxfd = (socket->getFd() > pipes->stdout->_fileno) ? socket->getFd() : pipes->stdout->_fileno; FD_ZERO(&readfd); @@ -552,7 +552,7 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col } if (websocket) { - websocket_handler(socket, &childpid, &pipes); + websocket_handler(socket, &pipes); } } catch (char *msg) { HttpStatusCode status = req.getStatusCode();