Skip to content

Commit

Permalink
out_opentelemetry: add const to suppress warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and edsiper committed Mar 11, 2023
1 parent ba8a3cd commit 7fd9950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/out_opentelemetry/opentelemetry_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void check_proxy(struct flb_output_instance *ins,
char *host, char *port,
char *protocol, char *uri){

char *tmp = NULL;
const char *tmp = NULL;
int ret;
tmp = flb_output_get_property("proxy", ins);
if (tmp) {
Expand Down Expand Up @@ -132,7 +132,7 @@ struct opentelemetry_context *flb_opentelemetry_context_create(
char *logs_uri = NULL;
struct flb_upstream *upstream;
struct opentelemetry_context *ctx = NULL;
char *tmp = NULL;
const char *tmp = NULL;

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

0 comments on commit 7fd9950

Please sign in to comment.