Make the struct tm a const (cppcheck recommendation).

This commit is contained in:
Andrew Wood
2026-05-10 19:19:30 +01:00
parent 7c19f58e75
commit 7ddbc72525
+1 -1
View File
@@ -23,7 +23,7 @@ pvdisplay_bytecount_t pv_formatter_fineta(pvformatter_args_t args)
{
char content[128]; /* flawfinder: ignore - bounded by strftime(). */
time_t now, then;
struct tm *time_ptr;
const struct tm *time_ptr;
long eta, max_years;
const char *time_format;
bool show_fineta;