mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Mark argument of RegisterCustomRmgr() as const.
This commit is contained in:
@@ -95,7 +95,7 @@ RmgrNotFound(RmgrId rmid)
|
||||
* reserving a new ID.
|
||||
*/
|
||||
void
|
||||
RegisterCustomRmgr(RmgrId rmid, RmgrData *rmgr)
|
||||
RegisterCustomRmgr(RmgrId rmid, const RmgrData *rmgr)
|
||||
{
|
||||
if (rmgr->rm_name == NULL || strlen(rmgr->rm_name) == 0)
|
||||
ereport(ERROR, (errmsg("custom resource manager name is invalid"),
|
||||
|
||||
Reference in New Issue
Block a user