projects
/
project
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a6aca5f
)
constify, fix types
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 2 Jan 2013 12:59:18 +0000
(13:59 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 2 Jan 2013 13:00:05 +0000
(14:00 +0100)
cgi.c
patch
|
blob
|
history
uhttpd.h
patch
|
blob
|
history
diff --git
a/cgi.c
b/cgi.c
index
cfd71fb
..
02665d8
100644
(file)
--- a/
cgi.c
+++ b/
cgi.c
@@
-38,7
+38,7
@@
void uh_interpreter_add(const char *ext, const char *path)
static void cgi_main(struct client *cl, struct path_info *pi, int fd)
{
static void cgi_main(struct client *cl, struct path_info *pi, int fd)
{
- struct interpreter *ip = pi->ip;
+
const
struct interpreter *ip = pi->ip;
struct env_var *var;
dup2(fd, 0);
struct env_var *var;
dup2(fd, 0);
diff --git
a/uhttpd.h
b/uhttpd.h
index
3cbe46f
..
22653b5
100644
(file)
--- a/
uhttpd.h
+++ b/
uhttpd.h
@@
-59,9
+59,9
@@
struct config {
struct auth_realm {
struct list_head list;
struct auth_realm {
struct list_head list;
- char *path;
- char *user;
- char *pass;
+ c
onst c
har *path;
+ c
onst c
har *user;
+ c
onst c
har *pass;
};
enum http_method {
};
enum http_method {
@@
-80,7
+80,7
@@
struct http_request {
enum http_method method;
enum http_version version;
int redirect_status;
enum http_method method;
enum http_version version;
int redirect_status;
- char *url;
+ c
onst c
har *url;
const struct auth_realm *realm;
};
const struct auth_realm *realm;
};
@@
-94,8
+94,8
@@
enum client_state {
struct interpreter {
struct list_head list;
struct interpreter {
struct list_head list;
- char *path;
- char *ext;
+ c
onst c
har *path;
+ c
onst c
har *ext;
};
struct path_info {
};
struct path_info {
@@
-104,9
+104,9
@@
struct path_info {
const char *name;
const char *info;
const char *query;
const char *name;
const char *info;
const char *query;
-
int
redirected;
+
bool
redirected;
struct stat stat;
struct stat stat;
- struct interpreter *ip;
+
const
struct interpreter *ip;
};
struct env_var {
};
struct env_var {