Skip to content

Commit 352ac57

Browse files
yunzvanessaVanessa Zhang
authored and
Vanessa Zhang
committed
processor: update function signature of flb_processor_unit_create to use const char* for unit_name
Signed-off-by: Vanessa Zhang <[email protected]>
1 parent 8ffe1ee commit 352ac57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/fluent-bit/flb_processor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int flb_processor_run(struct flb_processor *proc,
229229

230230
struct flb_processor_unit *flb_processor_unit_create(struct flb_processor *proc,
231231
int event_type,
232-
char *unit_name);
232+
const char *unit_name);
233233
void flb_processor_unit_destroy(struct flb_processor_unit *pu);
234234
int flb_processor_unit_set_property(struct flb_processor_unit *pu, const char *k, struct cfl_variant *v);
235235

src/flb_processor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ struct flb_processor *flb_processor_create(struct flb_config *config,
161161

162162
struct flb_processor_unit *flb_processor_unit_create(struct flb_processor *proc,
163163
int event_type,
164-
char *unit_name)
164+
const char *unit_name)
165165
{
166166
int result;
167167
struct mk_list *head;

0 commit comments

Comments
 (0)