diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-25 19:42:27 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-25 19:42:27 +0100 |
| commit | 5bc4c0663576fd99bb06068e6dfd624690865c89 (patch) | |
| tree | e1e90e6966abebf960ed9c9d4ed0937be22961ff /ot_stats.c | |
| parent | 33b095eb26ab8be3af48d8bd034262cd5ab03a04 (diff) | |
Be stricter about const char*, Wwrite-strings will warn in the future and we don't want to try to overwrite string literals
Diffstat (limited to 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -53,7 +53,7 @@ static unsigned long long ot_full_scrape_count; | |||
| 53 | static unsigned long long ot_full_scrape_request_count; | 53 | static unsigned long long ot_full_scrape_request_count; |
| 54 | static unsigned long long ot_full_scrape_size; | 54 | static unsigned long long ot_full_scrape_size; |
| 55 | static unsigned long long ot_failed_request_counts[CODE_HTTPERROR_COUNT]; | 55 | static unsigned long long ot_failed_request_counts[CODE_HTTPERROR_COUNT]; |
| 56 | static char *ot_failed_request_names[] = { | 56 | static const char *ot_failed_request_names[] = { |
| 57 | "302 Redirect", "400 Parse Error", "400 Invalid Parameter", "400 Invalid Parameter (compact=0)", "400 Not Modest", | 57 | "302 Redirect", "400 Parse Error", "400 Invalid Parameter", "400 Invalid Parameter (compact=0)", "400 Not Modest", |
| 58 | "402 Payment Required", "403 Access Denied", "404 Not found", "500 Internal Server Error"}; | 58 | "402 Payment Required", "403 Access Denied", "404 Not found", "500 Internal Server Error"}; |
| 59 | static unsigned long long ot_renewed[OT_PEER_TIMEOUT]; | 59 | static unsigned long long ot_renewed[OT_PEER_TIMEOUT]; |
