pgsql: Make some use of anonymous unions [pgcrypto]

Started by Peter Eisentraut9 months ago2 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Make some use of anonymous unions [pgcrypto]

Make some use of anonymous unions, which are allowed as of C11, as
examples and encouragement for future code, and to test compilers.

This commit changes some structures in pgcrypto.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: /messages/by-id/f00a9968-388e-4f8c-b5ef-5102e962d997@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/efcd5199d8cb8e5098f79b38d0c46004e69d1a46

Modified Files
--------------
contrib/pgcrypto/openssl.c | 14 +++++++-------
contrib/pgcrypto/px.h | 2 +-
src/common/cryptohash.c | 36 ++++++++++++++++++------------------
3 files changed, 26 insertions(+), 26 deletions(-)

#2David Rowley
dgrowleyml@gmail.com
In reply to: Peter Eisentraut (#1)
Re: pgsql: Make some use of anonymous unions [pgcrypto]

On Tue, 30 Sept 2025 at 23:37, Peter Eisentraut <peter@eisentraut.org> wrote:

src/common/cryptohash.c | 36 ++++++++++++++++++------------------

This seems to be causing some trouble:

https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=sifaka&amp;dt=2025-09-30%2010%3A57%3A42

David