From: Fabian Keil Date: Tue, 3 Jun 2014 10:29:23 +0000 (+0000) Subject: Reduce indirection in get_content_type() X-Git-Tag: v_3_0_22~125 X-Git-Url: http://www.privoxy.org/gitweb/templates.html?a=commitdiff_plain;h=9aa2e46707a2eb1d5f39ec2f9528c36810cf469f;p=privoxy.git Reduce indirection in get_content_type() --- 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[] = {