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