projects
/
oweals
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3032f8
)
constify mimetype list
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 Jan 2013 15:54:46 +0000
(16:54 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 Jan 2013 15:54:46 +0000
(16:54 +0100)
file.c
patch
|
blob
|
history
mimetypes.h
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index 528774842c6fb3987163586ba65a1d2cac3e9330..372696ca8727dbea673c20fde729ff5b216a4f2a 100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-252,7
+252,7
@@
uh_path_lookup(struct client *cl, const char *url)
static const char * uh_file_mime_lookup(const char *path)
{
- struct mimetype *m = &uh_mime_types[0];
+
const
struct mimetype *m = &uh_mime_types[0];
const char *e;
while (m->extn) {
diff --git
a/mimetypes.h
b/mimetypes.h
index 7fd885c5728f5cd8e805ee2b5643275b8ce64923..ad9286a0d1542893ba56695a93db2d8e5e8c2830 100644
(file)
--- a/
mimetypes.h
+++ b/
mimetypes.h
@@
-23,7
+23,7
@@
struct mimetype {
const char *mime;
};
-static struct mimetype uh_mime_types[] = {
+static
const
struct mimetype uh_mime_types[] = {
{ "txt", "text/plain" },
{ "log", "text/plain" },