From b1b94321234a14131b774c15debd76485b9a2df5 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Sat, 15 Nov 2003 04:41:17 +0000 Subject: [PATCH] Changes to comments that have been waiting since Aug 4 07:54. --- trunk/darkhttpd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/trunk/darkhttpd.c b/trunk/darkhttpd.c index 7dbf0be..e806f11 100644 --- a/trunk/darkhttpd.c +++ b/trunk/darkhttpd.c @@ -188,9 +188,6 @@ static FILE *logfile = NULL; static int want_chroot = 0; static const char *default_extension_map[] = { - /* Linear search used - order affects speed significantly. - * This could be done in a better way. - */ "text/html html htm", "image/png png", "image/jpeg jpeg jpe jpg", @@ -701,7 +698,8 @@ static char *expand_tilde(const char *path) /* --------------------------------------------------------------------------- - * Strips the ending slash from a string (if there is one) + * Strips the ending slash from a string (if there is one) and re-allocates + * the string. */ static void strip_endslash(char **str) { @@ -1617,7 +1615,7 @@ static void exit_quickly(int sig) int i; printf("\ncaught %s, cleaning up...", strsignal(sig)); fflush(stdout); - /* close connections */ + /* close and free connections */ conn = LIST_FIRST(&connlist); while (conn != NULL) {