projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
da4ded0
)
Reduce indirection in get_content_type()
author
Fabian Keil
<fk@fabiankeil.de>
Tue, 3 Jun 2014 10:29:23 +0000
(10:29 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Tue, 3 Jun 2014 10:29:23 +0000
(10:29 +0000)
cgisimple.c
patch
|
blob
|
history
diff --git
a/cgisimple.c
b/cgisimple.c
index
cefa51a
..
9a89e6f
100644
(file)
--- a/
cgisimple.c
+++ b/
cgisimple.c
@@
-1,4
+1,4
@@
-const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.12
6 2014/05/20 11:58:36
fabiankeil Exp $";
+const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.12
7 2014/06/03 10:28:39
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
/*********************************************************************
*
* 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
{
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[] =
{
};
static const struct content_type content_types[] =
{