From 9aa2e46707a2eb1d5f39ec2f9528c36810cf469f Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 3 Jun 2014 10:29:23 +0000 Subject: [PATCH] Reduce indirection in get_content_type() --- cgisimple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cgisimple.c b/cgisimple.c index cefa51a4..9a89e6f6 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.126 2014/05/20 11:58:36 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.127 2014/06/03 10:28:39 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -682,8 +682,8 @@ static const char *get_content_type(const char *filename) int i; struct content_type { - const char *extension; - const char *content_type; + const char extension[6]; + const char content_type[11]; }; static const struct content_type content_types[] = { -- 2.39.2