blob: cdbbb6b2c1833b52cff7637626642e44b384b53b [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From 27f0bd5a3339612e03112e6b490900a9fabc3337 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 9 Aug 2022 11:44:25 -0700
4Subject: [PATCH 5/5] stackdriver: Fix return type mismatch
5
6Fix
7error: incompatible integer to pointer conversion returning 'int' from a function with result type 'flb_sds_t' (aka 'char *') [-Wint-conversion]
8 return -1;
9 ^~
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 plugins/out_stackdriver/stackdriver.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/plugins/out_stackdriver/stackdriver.c b/plugins/out_stackdriver/stackdriver.c
17index ae66bf2..e01755c 100644
18--- a/plugins/out_stackdriver/stackdriver.c
19+++ b/plugins/out_stackdriver/stackdriver.c
20@@ -2033,7 +2033,7 @@ static flb_sds_t stackdriver_format(struct flb_stackdriver *ctx,
21 flb_sds_destroy(operation_producer);
22 msgpack_unpacked_destroy(&result);
23 msgpack_sbuffer_destroy(&mp_sbuf);
24- return -1;
25+ return NULL;
26 }
27
28 /* Number of parsed labels */
29--
302.37.1
31