Skip to content

Commit 7fd9950

Browse files
nokute78edsiper
authored andcommitted
out_opentelemetry: add const to suppress warnings
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent ba8a3cd commit 7fd9950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/out_opentelemetry/opentelemetry_conf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static void check_proxy(struct flb_output_instance *ins,
7171
char *host, char *port,
7272
char *protocol, char *uri){
7373

74-
char *tmp = NULL;
74+
const char *tmp = NULL;
7575
int ret;
7676
tmp = flb_output_get_property("proxy", ins);
7777
if (tmp) {
@@ -132,7 +132,7 @@ struct opentelemetry_context *flb_opentelemetry_context_create(
132132
char *logs_uri = NULL;
133133
struct flb_upstream *upstream;
134134
struct opentelemetry_context *ctx = NULL;
135-
char *tmp = NULL;
135+
const char *tmp = NULL;
136136

137137
/* Allocate plugin context */
138138
ctx = flb_calloc(1, sizeof(struct opentelemetry_context));

0 commit comments

Comments
 (0)