Make some use of anonymous unions [pgcrypto]

Peter Eisentraut <peter@eisentraut.org>

Commit: efcd5199d8cb8e5098f79b38d0c46004e69d1a46
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-09-30T10:35:50Z
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: https://www.postgresql.org/message-id/flat/f00a9968-388e-4f8c-b5ef-5102e962d997%40eisentraut.org

Files

PathChange+/−
contrib/pgcrypto/openssl.c modified +7 −7
contrib/pgcrypto/px.h modified +1 −1
src/common/cryptohash.c modified +18 −18

Discussion