From 8df741a078006afc994f5363d5045a001cb01690 Mon Sep 17 00:00:00 2001 From: Nate Choe Date: Mon, 14 Feb 2022 02:46:33 -0600 Subject: [PATCH] Removed superfluous commits --- src/connections.c | 10 ++-------- src/main.c | 7 ------- src/responses.c | 1 - src/responseutil.c | 3 --- src/runner.c | 3 --- src/sockets.c | 1 - 6 files changed, 2 insertions(+), 23 deletions(-) diff --git a/src/connections.c b/src/connections.c index c9d83a1..04a1b83 100644 --- a/src/connections.c +++ b/src/connections.c @@ -15,16 +15,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include #include -#include #include -#include - -#include -#include -#include #include #include @@ -186,7 +179,8 @@ static int processChar(Connection *conn, char c, Sitefile *site) { conn->currLineAlloc *= 2; newline = realloc(conn->currLine, conn->currLineAlloc); - assert(newline != NULL); + if (newline == NULL) + return 1; conn->currLine = newline; } conn->currLine[conn->currLineLen++] = c; diff --git a/src/main.c b/src/main.c index b87eb26..17f0562 100644 --- a/src/main.c +++ b/src/main.c @@ -16,20 +16,13 @@ along with this program. If not, see . */ #include -#include #include -#include -#include -#include #include #include #include -#include #include #include -#include -#include #include #include diff --git a/src/responses.c b/src/responses.c index 377444c..5ab42ac 100644 --- a/src/responses.c +++ b/src/responses.c @@ -16,7 +16,6 @@ along with this program. If not, see . */ -#include #include #include diff --git a/src/responseutil.c b/src/responseutil.c index 0fb1f81..c7682ef 100644 --- a/src/responseutil.c +++ b/src/responseutil.c @@ -15,15 +15,12 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include #include #include #include -#include #include -#include #include diff --git a/src/runner.c b/src/runner.c index a4370f1..52213cf 100644 --- a/src/runner.c +++ b/src/runner.c @@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include #include -#include #include #include diff --git a/src/sockets.c b/src/sockets.c index 7a53b83..a29a0cd 100644 --- a/src/sockets.c +++ b/src/sockets.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include #include #include