Make some use of anonymous unions [libpq-oauth]
authorJacob Champion <jchampion@postgresql.org>
Mon, 24 Nov 2025 17:55:16 +0000 (09:55 -0800)
committerJacob Champion <jchampion@postgresql.org>
Mon, 24 Nov 2025 17:55:16 +0000 (09:55 -0800)
commitf1881c7dd32cf5f429f6bd525b5cbacef3bb9c99
tree6cd0e340b1402c04e2ff5b90322627e795c68cf1
parentbc32a12e0db2df203a9cb2315461578e08568b9c
Make some use of anonymous unions [libpq-oauth]

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 the json_field struct.

Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://postgr.es/m/CAOYmi%2BnV25oC5uXFgWodydGrHkfWMDCLUcjbAreM3mNX%3DF2JWw%40mail.gmail.com
src/interfaces/libpq-oauth/oauth-curl.c