1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-18 23:57:33 +02:00

Convert the not very portable uint type to unsigned int.

Suggested by Devrim Gündüz.
This commit is contained in:
David Steele
2018-06-14 17:59:10 -04:00
parent 4e7692b74d
commit 3793ae1e4f
8 changed files with 27 additions and 19 deletions

View File

@ -12,7 +12,7 @@ PostgreSQL Info
/***********************************************************************************************************************************
Map control/catalog version to PostgreSQL version
***********************************************************************************************************************************/
static uint
static unsigned int
pgVersionMap(uint32_t controlVersion, uint32_t catalogVersion)
{
FUNCTION_TEST_BEGIN();
@ -20,7 +20,7 @@ pgVersionMap(uint32_t controlVersion, uint32_t catalogVersion)
FUNCTION_TEST_PARAM(UINT32, catalogVersion);
FUNCTION_TEST_END();
uint result = 0;
unsigned int result = 0;
if (controlVersion == 1100 && catalogVersion == 201804191)
result = PG_VERSION_11;

View File

@ -15,7 +15,7 @@ typedef struct PgControlInfo
uint64_t systemId;
uint32_t controlVersion;
uint32_t catalogVersion;
uint version;
unsigned int version;
} PgControlInfo;
#include "common/type/string.h"