mirror of
https://github.com/postgres/postgres.git
synced 2026-01-14 02:01:53 +00:00
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 <postgres@jeltef.nl> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/98ce805c-6103-421b-adc3-fcf8f3dddbe3%40eisentraut.org
This commit is contained in:
@ -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."),
|
||||
|
||||
Reference in New Issue
Block a user