summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/avro/avro-c/0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/avro/avro-c/0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch')
-rw-r--r--meta-oe/recipes-support/avro/avro-c/0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/avro/avro-c/0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch b/meta-oe/recipes-support/avro/avro-c/0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch
new file mode 100644
index 0000000000..bfe2ea6367
--- /dev/null
+++ b/meta-oe/recipes-support/avro/avro-c/0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch
@@ -0,0 +1,59 @@
1From 52f051dbeefad0b7e73187becad6c33747b047d3 Mon Sep 17 00:00:00 2001
2From: Sahil Kang <sahil.kang@asilaycomputing.com>
3Date: Mon, 11 Mar 2024 03:01:21 -0700
4Subject: [PATCH] AVRO-3957: [C] Fix typos in docs and examples (#2795)
5
6* AVRO-3957: [C] Fix misformatted type in docs
7
8Signed-off-by: Sahil Kang <sahil.kang@asilaycomputing.com>
9Signed-off-by: Sahil Kang <sahilkang@google.com>
10
11* AVRO-3957: [C] Fix type in quickstop example
12
13This removes the following warning:
14
15 avro/lang/c/examples/quickstop.c:123:40: warning: incompatible pointer types passing 'int32_t **' (aka 'int **') to parameter of type
16 'const char **' [-Wincompatible-pointer-types]
17 avro_value_get_string(&first_value, &p, &size);
18
19Signed-off-by: Sahil Kang <sahil.kang@asilaycomputing.com>
20Signed-off-by: Sahil Kang <sahilkang@google.com>
21
22---------
23
24Signed-off-by: Sahil Kang <sahil.kang@asilaycomputing.com>
25Signed-off-by: Sahil Kang <sahilkang@google.com>
26
27Upstream-Status: Backport [52f051dbee AVRO-3957: [C] Fix typos in docs and examples (#2795)]
28Signed-off-by: mark.yang <mark.yang@lge.com>
29---
30 lang/c/docs/index.txt | 2 +-
31 lang/c/examples/quickstop.c | 2 +-
32 2 files changed, 2 insertions(+), 2 deletions(-)
33
34diff --git a/lang/c/docs/index.txt b/lang/c/docs/index.txt
35index a439a0526..df16f9d96 100644
36--- a/lang/c/docs/index.txt
37+++ b/lang/c/docs/index.txt
38@@ -178,7 +178,7 @@ different versions of the Avro library. That means that it's really
39 only safe to use these hash values internally within the context of a
40 single execution of a single application.
41
42-The +reset+ method “clears out” an +avro_value_t instance, making sure
43+The +reset+ method “clears out” an +avro_value_t+ instance, making sure
44 that it's ready to accept the contents of a new value. For scalars,
45 this is usually a no-op, since the new value will just overwrite the old
46 one. For arrays and maps, this removes any existing elements from the
47diff --git a/lang/c/examples/quickstop.c b/lang/c/examples/quickstop.c
48index ff9e97005..b26dad10c 100644
49--- a/lang/c/examples/quickstop.c
50+++ b/lang/c/examples/quickstop.c
51@@ -107,7 +107,7 @@ int print_person(avro_file_reader_t db, avro_schema_t reader_schema)
52 if (rval == 0) {
53 int64_t id;
54 int32_t age;
55- int32_t *p;
56+ const char *p;
57 size_t size;
58 avro_value_t id_value;
59 avro_value_t first_value;