diff options
Diffstat (limited to 'src/include/common')
-rw-r--r-- | src/include/common/int.h | 24 | ||||
-rw-r--r-- | src/include/common/scram-common.h | 2 | ||||
-rw-r--r-- | src/include/common/string.h | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/src/include/common/int.h b/src/include/common/int.h index 82e38d4b7b..ff410f0eae 100644 --- a/src/include/common/int.h +++ b/src/include/common/int.h @@ -35,7 +35,7 @@ pg_add_s16_overflow(int16 a, int16 b, int16 *result) if (res > PG_INT16_MAX || res < PG_INT16_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int16) res; @@ -58,7 +58,7 @@ pg_sub_s16_overflow(int16 a, int16 b, int16 *result) if (res > PG_INT16_MAX || res < PG_INT16_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int16) res; @@ -81,7 +81,7 @@ pg_mul_s16_overflow(int16 a, int16 b, int16 *result) if (res > PG_INT16_MAX || res < PG_INT16_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int16) res; @@ -104,7 +104,7 @@ pg_add_s32_overflow(int32 a, int32 b, int32 *result) if (res > PG_INT32_MAX || res < PG_INT32_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int32) res; @@ -127,7 +127,7 @@ pg_sub_s32_overflow(int32 a, int32 b, int32 *result) if (res > PG_INT32_MAX || res < PG_INT32_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int32) res; @@ -150,7 +150,7 @@ pg_mul_s32_overflow(int32 a, int32 b, int32 *result) if (res > PG_INT32_MAX || res < PG_INT32_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int32) res; @@ -173,7 +173,7 @@ pg_add_s64_overflow(int64 a, int64 b, int64 *result) if (res > PG_INT64_MAX || res < PG_INT64_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int64) res; @@ -182,7 +182,7 @@ pg_add_s64_overflow(int64 a, int64 b, int64 *result) if ((a > 0 && b > 0 && a > PG_INT64_MAX - b) || (a < 0 && b < 0 && a < PG_INT64_MIN - b)) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = a + b; @@ -205,7 +205,7 @@ pg_sub_s64_overflow(int64 a, int64 b, int64 *result) if (res > PG_INT64_MAX || res < PG_INT64_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int64) res; @@ -214,7 +214,7 @@ pg_sub_s64_overflow(int64 a, int64 b, int64 *result) if ((a < 0 && b > 0 && a < PG_INT64_MIN + b) || (a > 0 && b < 0 && a > PG_INT64_MAX + b)) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = a - b; @@ -237,7 +237,7 @@ pg_mul_s64_overflow(int64 a, int64 b, int64 *result) if (res > PG_INT64_MAX || res < PG_INT64_MIN) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = (int64) res; @@ -262,7 +262,7 @@ pg_mul_s64_overflow(int64 a, int64 b, int64 *result) (a < 0 && b > 0 && a < PG_INT64_MIN / b) || (a < 0 && b < 0 && a < PG_INT64_MAX / b))) { - *result = 0x5EED; /* to avoid spurious warnings */ + *result = 0x5EED; /* to avoid spurious warnings */ return true; } *result = a * b; diff --git a/src/include/common/scram-common.h b/src/include/common/scram-common.h index 17373cce3a..dcb5d69078 100644 --- a/src/include/common/scram-common.h +++ b/src/include/common/scram-common.h @@ -17,7 +17,7 @@ /* Name of SCRAM mechanisms per IANA */ #define SCRAM_SHA_256_NAME "SCRAM-SHA-256" -#define SCRAM_SHA_256_PLUS_NAME "SCRAM-SHA-256-PLUS" /* with channel binding */ +#define SCRAM_SHA_256_PLUS_NAME "SCRAM-SHA-256-PLUS" /* with channel binding */ /* Channel binding types */ #define SCRAM_CHANNEL_BINDING_TLS_UNIQUE "tls-unique" diff --git a/src/include/common/string.h b/src/include/common/string.h index 63c3e81a64..78a450192e 100644 --- a/src/include/common/string.h +++ b/src/include/common/string.h @@ -12,6 +12,6 @@ extern bool pg_str_endswith(const char *str, const char *end); extern int strtoint(const char *pg_restrict str, char **pg_restrict endptr, - int base); + int base); #endif /* COMMON_STRING_H */ |