diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-03-14 09:23:37 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-03-14 09:23:37 +0100 |
commit | 6b41ef03306f50602f68593d562cd73d5e39a9b9 (patch) | |
tree | 32faaff34a90e8d803d3c005336dee0ea9cd01b7 /src | |
parent | 9c40db3b02a41e978ebeb2c61930498a36812bbf (diff) | |
download | postgresql-6b41ef03306f50602f68593d562cd73d5e39a9b9.tar.gz postgresql-6b41ef03306f50602f68593d562cd73d5e39a9b9.zip |
Fix documentation comment for pg_md5_hash
Commit b69aba74578 added the errstr parameter to pg_md5_hash but
missed updating the synopsis in the documentation comment. The
follow-up commit 587de223f03 added the parameter to the list of
outputs. The returnvalue had been changed from integer to bool
before that but remained in the synopsis. This fixes both.
Author: Tatsuro Yamada <tatsuro.yamada@ntt.com>
Discussion: https://postgr.es/m/TYYPR01MB82313576150CC86084A122CD9E292@TYYPR01MB8231.jpnprd01.prod.outlook.com
Diffstat (limited to 'src')
-rw-r--r-- | src/common/md5_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/md5_common.c b/src/common/md5_common.c index 094878479cf..c654efe9718 100644 --- a/src/common/md5_common.c +++ b/src/common/md5_common.c @@ -45,7 +45,8 @@ bytesToHex(uint8 b[16], char *s) * Calculates the MD5 sum of the bytes in a buffer. * * SYNOPSIS #include "md5.h" - * int pg_md5_hash(const void *buff, size_t len, char *hexsum) + * bool pg_md5_hash(const void *buff, size_t len, char *hexsum, + * const char **errstr) * * INPUT buff the buffer containing the bytes that you want * the MD5 sum of. |