You've already forked pgbackrest
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:
@ -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;
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user