summaryrefslogtreecommitdiff
path: root/src/include/common/parse_manifest.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-06-21 07:50:02 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-06-21 07:53:30 +0200
commit0b06bf9fa972e2964401622f1bb4c611dbe92bd5 (patch)
tree9ad5f17e338e22d13219a5a9e970801ac646c6cc /src/include/common/parse_manifest.h
parent7a089f6e6a14ca3a5dc8822c393c6620279968b9 (diff)
jsonapi: Use size_t
Use size_t instead of int for object sizes in the jsonapi. This makes the API better self-documenting. Reviewed-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://www.postgresql.org/message-id/flat/f732b014-f614-4600-a437-dba5a2c3738b%40eisentraut.org
Diffstat (limited to 'src/include/common/parse_manifest.h')
-rw-r--r--src/include/common/parse_manifest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/common/parse_manifest.h b/src/include/common/parse_manifest.h
index 0d04239c38d..2777b1e9d22 100644
--- a/src/include/common/parse_manifest.h
+++ b/src/include/common/parse_manifest.h
@@ -51,7 +51,7 @@ extern void json_parse_manifest(JsonManifestParseContext *context,
char *buffer, size_t size);
extern JsonManifestParseIncrementalState *json_parse_manifest_incremental_init(JsonManifestParseContext *context);
extern void json_parse_manifest_incremental_chunk(
- JsonManifestParseIncrementalState *incstate, char *chunk, int size,
+ JsonManifestParseIncrementalState *incstate, char *chunk, size_t size,
bool is_last);
extern void json_parse_manifest_incremental_shutdown(JsonManifestParseIncrementalState *incstate);