Make some use of anonymous unions [libpq-oauth]

Jacob Champion <jchampion@postgresql.org>

Commit: f1881c7dd32cf5f429f6bd525b5cbacef3bb9c99
Author: Jacob Champion <jchampion@postgresql.org>
Date: 2025-11-24T17:55:16Z
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

Files

PathChange+/−
src/interfaces/libpq-oauth/oauth-curl.c modified +10 −10

Discussion