diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-11-25 01:54:08 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 19:54:28 -0400 |
commit | 010c28949c17f3a846d78e4938ae53f165b6b3f1 (patch) | |
tree | 19423195330404ccb34456b87fa4e4f93d0f9708 /src/log.c | |
parent | 644725127f029b9e8b5a4b5c0d64867243f788c5 (diff) | |
download | lighttpd-git-010c28949c17f3a846d78e4938ae53f165b6b3f1.tar.gz |
[multiple] prefer (connection *) to (srv *)
convert all log_error_write() to log_error() and pass (log_error_st *)
use con->errh in preference to srv->errh (even though currently same)
avoid passing (server *) when previously used only for logging (errh)
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -166,21 +166,6 @@ static void log_write(const log_error_st *errh, buffer *b) { } } -int log_error_write(server *srv, const char *filename, unsigned int line, const char *fmt, ...) { - const log_error_st *errh = srv->errh; - buffer *b = errh->b; - if (-1 == log_buffer_prepare(errh, filename, line, b)) return 0; - - va_list ap; - va_start(ap, fmt); - log_buffer_append_printf(b, fmt, ap); - va_end(ap); - - log_write(errh, b); - - return 0; -} - int log_error_write_multiline_buffer(server *srv, const char *filename, unsigned int line, buffer *multiline, const char *fmt, ...) { const log_error_st *errh = srv->errh; buffer *b = errh->b; |