Skip to content

Commit f73850f

Browse files
committed
input_chunk: small cleanup
Signed-off-by: Eduardo Silva <[email protected]>
1 parent b0cdb17 commit f73850f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flb_input_chunk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ static int flb_input_chunk_release_space(
296296
{
297297
struct mk_list *input_chunk_iterator_tmp;
298298
struct mk_list *input_chunk_iterator;
299+
struct flb_router *router;
299300
ssize_t dropped_record_count;
300301
int chunk_destroy_flag;
301302
struct flb_input_chunk *old_input_chunk;
@@ -366,7 +367,7 @@ static int flb_input_chunk_release_space(
366367

367368
if (input_plugin->config && input_plugin->config->router &&
368369
old_input_chunk->event_type == FLB_INPUT_LOGS) {
369-
struct flb_router *router = input_plugin->config->router;
370+
router = input_plugin->config->router;
370371

371372
cmt_counter_add(router->logs_drop_records_total,
372373
cfl_time_now(),
@@ -486,7 +487,6 @@ int flb_input_chunk_write(void *data, const char *buf, size_t len)
486487
{
487488
int ret;
488489
struct flb_input_chunk *ic;
489-
size_t mask_size;
490490

491491
ic = (struct flb_input_chunk *) data;
492492

0 commit comments

Comments
 (0)