1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Correct cfgDefDataFind() to use UINTP instead of VOIDPP.

Also add the UINTP macro.

Contributed by Cynthia Shang.
This commit is contained in:
Cynthia Shang 2018-10-19 10:51:33 +02:00 committed by David Steele
parent 06d68eada0
commit 09a1ad2c10
3 changed files with 17 additions and 1 deletions

View File

@ -13,6 +13,17 @@
<release-list>
<release date="XXXX-XX-XX" version="2.07dev" title="UNDER DEVELOPMENT">
<release-core-list>
<release-development-list>
<release-item>
<release-item-contributor-list>
<release-item-contributor id="cynthia.shang"/>
</release-item-contributor-list>
<p>Correct <code>cfgDefDataFind()</code> to use <code>UINTP</code> instead of <code>VOIDPP</code>.</p>
</release-item>
</release-development-list>
</release-core-list>
</release>
<release date="2018-10-15" version="2.06" title="Checksum Delta Backup and PostgreSQL 11 Support">

View File

@ -180,6 +180,11 @@ size_t strzToLog(const char *string, char *buffer, size_t bufferSize);
#define FUNCTION_DEBUG_UINT_FORMAT(value, buffer, bufferSize) \
cvtUIntToZ(value, buffer, bufferSize)
#define FUNCTION_DEBUG_UINTP_TYPE \
unsigned int *
#define FUNCTION_DEBUG_UINTP_FORMAT(value, buffer, bufferSize) \
ptrToLog(value, "unsigned int *", buffer, bufferSize)
#define FUNCTION_DEBUG_UINT16_TYPE \
uint16_t
#define FUNCTION_DEBUG_UINT16_FORMAT(value, buffer, bufferSize) \

View File

@ -188,7 +188,7 @@ cfgDefDataFind(
FUNCTION_TEST_PARAM(BOOLP, dataDefFound);
FUNCTION_TEST_PARAM(INTP, dataDef);
FUNCTION_TEST_PARAM(VOIDPP, dataDefList);
FUNCTION_TEST_PARAM(VOIDPP, dataDefListSize);
FUNCTION_TEST_PARAM(UINTP, dataDefListSize);
FUNCTION_TEST_ASSERT(dataDefFound != NULL);
FUNCTION_TEST_ASSERT(dataDef != NULL);