trace-chunk: clean-up: mark close command properties as static const
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 Sep 2019 16:33:15 +0000 (12:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Sep 2019 18:33:21 +0000 (14:33 -0400)
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 <jeremie.galarneau@efficios.com>
src/common/trace-chunk.c

index 29977cabb1ae48e7ab015e717dc38173fcfd93d8..fb4d1672490d49b889e98646ecee7bc6bcea788a 100644 (file)
@@ -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,
This page took 0.026331 seconds and 4 git commands to generate.