From: Jérémie Galarneau Date: Wed, 18 Sep 2019 16:33:15 +0000 (-0400) Subject: trace-chunk: clean-up: mark close command properties as static const X-Git-Tag: v2.11.0-rc4~24 X-Git-Url: http://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=77ef44fa23c474a45ae80b118b73179102f6c693 trace-chunk: clean-up: mark close command properties as static const Command properties should not be experted outside of trace-chunk.c and should be const. Mark them as such. Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c index 29977cabb..fb4d16724 100644 --- a/src/common/trace-chunk.c +++ b/src/common/trace-chunk.c @@ -104,11 +104,13 @@ struct lttng_trace_chunk_registry { struct cds_lfht *ht; }; -const char *close_command_names[] = { +static const +char *close_command_names[] = { [LTTNG_TRACE_CHUNK_COMMAND_TYPE_MOVE_TO_COMPLETED] = "move to completed chunk folder", }; +static const chunk_close_command close_command_funcs[] = { [LTTNG_TRACE_CHUNK_COMMAND_TYPE_MOVE_TO_COMPLETED] = lttng_trace_chunk_move_to_completed,