From: Peter Eisentraut Date: Thu, 8 Jan 2026 07:45:59 +0000 (+0100) Subject: Remove use of rindex() function X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ade3cd459f5d310a248be2047b2d321015058c3;p=thirdparty%2Fpostgresql.git Remove use of rindex() function rindex() has been removed from POSIX 2008. Replace the one remaining use with the equivalent and more standard strrchr(). Reviewed-by: Jelte Fennema-Nio Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/98ce805c-6103-421b-adc3-fcf8f3dddbe3%40eisentraut.org --- diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c index 49e76153f9a..8d009dd5cf7 100644 --- a/src/backend/jit/llvm/llvmjit.c +++ b/src/backend/jit/llvm/llvmjit.c @@ -1058,7 +1058,7 @@ llvm_split_symbol_name(const char *name, char **modname, char **funcname) * Symbol names cannot contain a ., therefore we can split based on * first and last occurrence of one. */ - *funcname = rindex(name, '.'); + *funcname = strrchr(name, '.'); (*funcname)++; /* jump over . */ *modname = pnstrdup(name + strlen("pgextern."),