summaryrefslogtreecommitdiff
path: root/src/stat_cache.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2010-08-06 21:57:15 +0000
committerStefan Bühler <stbuehler@web.de>2010-08-06 21:57:15 +0000
commit38f2d1ddd7d92e637afd377120003b0dcc404eee (patch)
treea22c77871eedf7c3a73bb33d7944e29a663010d1 /src/stat_cache.c
parent614bb7538dc9bbccf4299386f8847be018f7d63d (diff)
downloadlighttpd1.4-38f2d1ddd7d92e637afd377120003b0dcc404eee.tar.gz
lighttpd1.4-38f2d1ddd7d92e637afd377120003b0dcc404eee.zip
cleanup fdevent code, removed linux-rtsig handler, replaced some fprintf calls
* use log functions * convert flags * fix handler callback prototype git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2752 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/stat_cache.c')
-rw-r--r--src/stat_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stat_cache.c b/src/stat_cache.c
index c1afade6..3edaeeb6 100644
--- a/src/stat_cache.c
+++ b/src/stat_cache.c
@@ -238,9 +238,8 @@ static uint32_t hashme(buffer *str) {
}
#ifdef HAVE_FAM_H
-handler_t stat_cache_handle_fdevent(void *_srv, void *_fce, int revent) {
+handler_t stat_cache_handle_fdevent(server *srv, void *_fce, int revent) {
size_t i;
- server *srv = _srv;
stat_cache *sc = srv->stat_cache;
size_t events;
@@ -433,7 +432,8 @@ handler_t stat_cache_get_entry(server *srv, connection *con, buffer *name, stat_
} else {
#ifdef DEBUG_STAT_CACHE
if (i != ctrl.used) {
- fprintf(stderr, "%s.%d: %08x was already inserted but not found in cache, %s\n", __FILE__, __LINE__, file_ndx, name->ptr);
+ log_error_write(srv, __FILE__, __LINE__, "xSB",
+ file_ndx, "was already inserted but not found in cache, ", name);
}
assert(i == ctrl.used);
#endif