Skip to content

Commit

Permalink
out_stdout: add const in functions signatures and limit casts
Browse files Browse the repository at this point in the history
Signed-off-by: Yann Soubeyrand <[email protected]>
  • Loading branch information
yann-soubeyrand authored and edsiper committed May 28, 2019
1 parent b0504ad commit 8de5c09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/out_stdout/stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "stdout.h"

static char *msgpack_to_json(struct flb_out_stdout_config *ctx,
char *data, uint64_t bytes,
const char *data, uint64_t bytes,
uint64_t *out_size)
{
int i;
Expand Down Expand Up @@ -160,7 +160,7 @@ static char *msgpack_to_json(struct flb_out_stdout_config *ctx,
static int cb_stdout_init(struct flb_output_instance *ins,
struct flb_config *config, void *data)
{
char *tmp;
const char *tmp;
struct flb_out_stdout_config *ctx = NULL;
(void) ins;
(void) config;
Expand Down Expand Up @@ -204,8 +204,8 @@ static int cb_stdout_init(struct flb_output_instance *ins,
return 0;
}

static void cb_stdout_flush(void *data, size_t bytes,
char *tag, int tag_len,
static void cb_stdout_flush(const void *data, size_t bytes,
const char *tag, int tag_len,
struct flb_input_instance *i_ins,
void *out_context,
struct flb_config *config)
Expand Down

0 comments on commit 8de5c09

Please sign in to comment.