diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-05-03 01:10:10 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-05-11 23:51:47 -0400 |
commit | f2610d23e242e96b49b115081c094206cca3e00d (patch) | |
tree | 5a91643123b35c77d37beab2debc24a477ffd275 /src/mod_status.c | |
parent | 1194e6d24b92d1bdac60eb07ef45ad726d479654 (diff) | |
download | lighttpd-git-f2610d23e242e96b49b115081c094206cca3e00d.tar.gz |
[multiple] use buffer_append_char()
Diffstat (limited to 'src/mod_status.c')
-rw-r--r-- | src/mod_status.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mod_status.c b/src/mod_status.c index aa8410f2..388c36b3 100644 --- a/src/mod_status.c +++ b/src/mod_status.c @@ -177,7 +177,7 @@ static void mod_status_html_rtable_r (buffer * const b, const request_st * const if (r->reqbody_length) { buffer_append_int(b, r->reqbody_queue.bytes_in); - buffer_append_string_len(b, CONST_STR_LEN("/")); + buffer_append_char(b, '/'); buffer_append_int(b, r->reqbody_length); } else @@ -186,7 +186,7 @@ static void mod_status_html_rtable_r (buffer * const b, const request_st * const buffer_append_string_len(b, CONST_STR_LEN("</td><td class=\"int\">")); buffer_append_int(b, r->write_queue.bytes_out); - buffer_append_string_len(b, CONST_STR_LEN("/")); + buffer_append_char(b, '/'); buffer_append_int(b, r->write_queue.bytes_in); buffer_append_string_len(b, CONST_STR_LEN("</td><td class=\"string\">")); @@ -213,14 +213,14 @@ static void mod_status_html_rtable_r (buffer * const b, const request_st * const buffer_append_string_encoded(b, BUF_PTR_LEN(&r->uri.path), ENCODING_HTML); if (!buffer_is_blank(&r->uri.query)) { - buffer_append_string_len(b, CONST_STR_LEN("?")); + buffer_append_char(b, '?'); buffer_append_string_encoded(b, BUF_PTR_LEN(&r->uri.query), ENCODING_HTML); } if (!buffer_is_blank(&r->target_orig)) { buffer_append_string_len(b, CONST_STR_LEN(" (")); buffer_append_string_encoded(b, BUF_PTR_LEN(&r->target_orig), ENCODING_HTML); - buffer_append_string_len(b, CONST_STR_LEN(")")); + buffer_append_char(b, ')'); } buffer_append_string_len(b, CONST_STR_LEN("</td><td class=\"string\">")); @@ -391,7 +391,7 @@ static handler_t mod_status_handle_server_status_html(server *srv, request_st * if (!buffer_is_blank(r->server_name) && r->server_name != &r->uri.authority) { buffer_append_string_len(b, CONST_STR_LEN(" (")); buffer_append_string_encoded(b, BUF_PTR_LEN(r->server_name), ENCODING_HTML); - buffer_append_string_len(b, CONST_STR_LEN(")")); + buffer_append_char(b, ')'); } buffer_append_string_len(b, CONST_STR_LEN("</td></tr>\n" "<tr><td>Uptime</td><td class=\"string\">")); @@ -665,7 +665,7 @@ static handler_t mod_status_handle_server_statistics(request_st * const r) { buffer_append_str2(b, BUF_PTR_LEN(&st->sorted[i]->key), CONST_STR_LEN(": ")); buffer_append_int(b, ((data_integer *)st->sorted[i])->value); - buffer_append_string_len(b, CONST_STR_LEN("\n")); + buffer_append_char(b, '\n'); } chunkqueue_append_buffer_commit(&r->write_queue); |