Add some missing const, from Jere Viikari.

This commit is contained in:
nicm
2026-06-13 20:07:30 +00:00
parent d23a2b7e97
commit 5b6ed54817
4 changed files with 13 additions and 12 deletions

View File

@@ -3760,7 +3760,7 @@ format_table_compare(const void *key0, const void *entry0)
}
/* Get a format callback. */
static struct format_table_entry *
static const struct format_table_entry *
format_table_get(const char *key)
{
return (bsearch(key, format_table, nitems(format_table),
@@ -4094,7 +4094,7 @@ static char *
format_find(struct format_tree *ft, const char *key, int modifiers,
const char *time_format)
{
struct format_table_entry *fte;
const struct format_table_entry *fte;
void *value;
struct format_entry *fe, fe_find;
struct environ_entry *envent;