diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-06 23:04:22 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-06 23:04:22 +0300 |
commit | 85829c973cb33592dbc0b0f3aaf9132f5dea6953 (patch) | |
tree | 649b55143d540c8f7a17dc6fbc76743ad2276a9e /src/test/modules/test_json_parser/test_json_parser_incremental.c | |
parent | 1e35951e71d37ab6716fa55ba399fbe6df4a7417 (diff) | |
download | postgresql-85829c973cb33592dbc0b0f3aaf9132f5dea6953.tar.gz postgresql-85829c973cb33592dbc0b0f3aaf9132f5dea6953.zip |
Make nullSemAction const, add 'const' decorators to related functions
To make it more clear that these should never be modified.
Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/54c29fb0-edf2-48ea-9814-44e918bbd6e8@iki.fi
Diffstat (limited to 'src/test/modules/test_json_parser/test_json_parser_incremental.c')
-rw-r--r-- | src/test/modules/test_json_parser/test_json_parser_incremental.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/modules/test_json_parser/test_json_parser_incremental.c b/src/test/modules/test_json_parser/test_json_parser_incremental.c index 47040e1e421..294e5f74eac 100644 --- a/src/test/modules/test_json_parser/test_json_parser_incremental.c +++ b/src/test/modules/test_json_parser/test_json_parser_incremental.c @@ -84,7 +84,7 @@ main(int argc, char **argv) size_t chunk_size = DEFAULT_CHUNK_SIZE; struct stat statbuf; off_t bytes_left; - JsonSemAction *testsem = &nullSemAction; + const JsonSemAction *testsem = &nullSemAction; char *testfile; int c; bool need_strings = false; |