From: Peter Eisentraut Date: Fri, 6 Sep 2024 09:25:48 +0000 (+0200) Subject: Remove useless unconstify X-Git-Tag: REL_18_BETA1~1977 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=9e43ab3dd79ddb5a6a3f7cdb5b1d6dffc9e7765b;p=postgresql.git Remove useless unconstify Digging into the history, this was not necessary even when it was added, but might have been some time before that. In any case, there is no use for this now. --- diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index 68069fcfd3b..33a810b008d 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -2621,7 +2621,7 @@ seq_search_localized(const char *name, char **array, int *len, Oid collid) * Fold to upper case, then to lower case, so that we can match reliably * even in languages in which case conversions are not injective. */ - upper_name = str_toupper(unconstify(char *, name), strlen(name), collid); + upper_name = str_toupper(name, strlen(name), collid); lower_name = str_tolower(upper_name, strlen(upper_name), collid); pfree(upper_name);