mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove AssertArg and AssertState
These don't offer anything over plain Assert, and their usage had already been declared obsolescent. Author: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/20221009210148.GA900071@nathanxps13
This commit is contained in:
@@ -57,7 +57,7 @@ get_controlfile(const char *DataDir, bool *crc_ok_p)
|
||||
pg_crc32c crc;
|
||||
int r;
|
||||
|
||||
AssertArg(crc_ok_p);
|
||||
Assert(crc_ok_p);
|
||||
|
||||
ControlFile = palloc_object(ControlFileData);
|
||||
snprintf(ControlFilePath, MAXPGPATH, "%s/global/pg_control", DataDir);
|
||||
|
@@ -81,7 +81,7 @@ SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version)
|
||||
{
|
||||
int ssl_options = 0;
|
||||
|
||||
AssertArg(version != 0);
|
||||
Assert(version != 0);
|
||||
|
||||
/*
|
||||
* Some OpenSSL versions define TLS*_VERSION macros but not the
|
||||
|
Reference in New Issue
Block a user