Removed unnecessary function parameter

This commit is contained in:
2020-12-01 19:54:14 +01:00
parent ce9e3c33f8
commit d68325d28a

View File

@ -209,7 +209,7 @@ long getPosition(std::string str, char c, int occurence) {
return -1; return -1;
} }
int websocket_handler(Socket *socket, pid_t *childpid, stds *pipes) { int websocket_handler(Socket *socket, stds *pipes) {
fd_set readfd; fd_set readfd;
int maxfd = (socket->getFd() > pipes->stdout->_fileno) ? socket->getFd() : pipes->stdout->_fileno; int maxfd = (socket->getFd() > pipes->stdout->_fileno) ? socket->getFd() : pipes->stdout->_fileno;
FD_ZERO(&readfd); FD_ZERO(&readfd);
@ -552,7 +552,7 @@ bool connection_handler(const char *preprefix, const char *col1, const char *col
} }
if (websocket) { if (websocket) {
websocket_handler(socket, &childpid, &pipes); websocket_handler(socket, &pipes);
} }
} catch (char *msg) { } catch (char *msg) {
HttpStatusCode status = req.getStatusCode(); HttpStatusCode status = req.getStatusCode();