Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 27f0bd5a3339612e03112e6b490900a9fabc3337 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 9 Aug 2022 11:44:25 -0700 |
| 4 | Subject: [PATCH 5/5] stackdriver: Fix return type mismatch |
| 5 | |
| 6 | Fix |
| 7 | error: 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 | |
| 11 | Signed-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 | |
| 16 | diff --git a/plugins/out_stackdriver/stackdriver.c b/plugins/out_stackdriver/stackdriver.c |
| 17 | index 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 | -- |
| 30 | 2.37.1 |
| 31 | |