diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-31 18:49:08 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-31 18:49:08 +0100 |
commit | 8515c92b9302b258be10df5c5cee240dd4b137f6 (patch) | |
tree | 81a74986f105cec6dc5306d1979af0860843a387 /file.c | |
parent | d779a5dc390b9c6e1ed32cdd287997f81ee88d37 (diff) |
make uh_path_lookup static
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -127,7 +127,8 @@ next: /* Returns NULL on error. ** NB: improperly encoded URL should give client 400 [Bad Syntax]; returning ** NULL here causes 404 [Not Found], but that's not too unreasonable. */ -struct path_info * uh_path_lookup(struct client *cl, const char *url) +static struct path_info * +uh_path_lookup(struct client *cl, const char *url) { static char path_phys[PATH_MAX]; static char path_info[PATH_MAX]; @@ -585,6 +586,7 @@ static void uh_file_data(struct client *cl, struct path_info *pi, int fd) cl->data.file.fd = fd; cl->dispatch_write_cb = file_write_cb; cl->dispatch_free = uh_file_free; + cl->dispatch_close_fds = uh_file_free; file_write_cb(cl); } |