From 81f48c25c484252ed2b05bdbdd8972cc749adac1 Mon Sep 17 00:00:00 2001 From: Sahil Kang Date: Sun, 10 Mar 2024 01:33:31 -0800 Subject: [PATCH] AVRO-3957: [C] Fix type in quickstop example This removes the following warning: avro/lang/c/examples/quickstop.c:123:40: warning: incompatible pointer types passing 'int32_t **' (aka 'int **') to parameter of type 'const char **' [-Wincompatible-pointer-types] avro_value_get_string(&first_value, &p, &size); Signed-off-by: Sahil Kang Signed-off-by: Sahil Kang --- lang/c/examples/quickstop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/c/examples/quickstop.c b/lang/c/examples/quickstop.c index ff9e9700590..b26dad10c04 100644 --- a/lang/c/examples/quickstop.c +++ b/lang/c/examples/quickstop.c @@ -107,7 +107,7 @@ int print_person(avro_file_reader_t db, avro_schema_t reader_schema) if (rval == 0) { int64_t id; int32_t age; - int32_t *p; + const char *p; size_t size; avro_value_t id_value; avro_value_t first_value;