mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
chkpass_rout returns text so change PG_RETURN_CSTRING to PG_RETURN_TEXT_P.
This is currently a cosmetic difference but I make the change now in case the macros diverge one day.
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
* darcy@druid.net
|
* darcy@druid.net
|
||||||
* http://www.druid.net/darcy/
|
* http://www.druid.net/darcy/
|
||||||
*
|
*
|
||||||
* $Id: chkpass.c,v 1.7 2001/12/19 18:49:24 petere Exp $
|
* $Id: chkpass.c,v 1.8 2002/08/29 12:18:20 darcy Exp $
|
||||||
* best viewed with tabs set to 4
|
* best viewed with tabs set to 4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ chkpass_rout(PG_FUNCTION_ARGS)
|
|||||||
memcpy(result->vl_dat, password->password, strlen(password->password));
|
memcpy(result->vl_dat, password->password, strlen(password->password));
|
||||||
}
|
}
|
||||||
|
|
||||||
PG_RETURN_CSTRING(result);
|
PG_RETURN_TEXT_P(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user