Skip to content

Commit 6b41ef0

Browse files
Fix documentation comment for pg_md5_hash
Commit b69aba7 added the errstr parameter to pg_md5_hash but missed updating the synopsis in the documentation comment. The follow-up commit 587de22 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
1 parent 9c40db3 commit 6b41ef0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/md5_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ bytesToHex(uint8 b[16], char *s)
4545
* Calculates the MD5 sum of the bytes in a buffer.
4646
*
4747
* SYNOPSIS #include "md5.h"
48-
* int pg_md5_hash(const void *buff, size_t len, char *hexsum)
48+
* bool pg_md5_hash(const void *buff, size_t len, char *hexsum,
49+
* const char **errstr)
4950
*
5051
* INPUT buff the buffer containing the bytes that you want
5152
* the MD5 sum of.

0 commit comments

Comments
 (0)