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.12.0-rc1~371 X-Git-Url: http://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=606846ba9588920704ccaa53d1127ecc1dcdaa80 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,