Clean-up: consumer: consumer_metadata_cache_write is not const-correct
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 20 Aug 2020 19:40:10 +0000 (15:40 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 20 Aug 2020 19:40:29 +0000 (15:40 -0400)
`data` is used as a source argument and can be marked as `const`.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9b2b32fe253e1b89a2605ed9c859a04141b321d5

src/common/consumer/consumer-metadata-cache.c
src/common/consumer/consumer-metadata-cache.h

index 03e12db55e7dcc04e66ecc581aa6d022104548ba..987bf7c8577d8c683a6b7e4a751c8b77ff2108a5 100644 (file)
@@ -140,7 +140,7 @@ end:
  */
 int consumer_metadata_cache_write(struct lttng_consumer_channel *channel,
                unsigned int offset, unsigned int len, uint64_t version,
-               char *data)
+               const char *data)
 {
        int ret = 0;
        struct consumer_metadata_cache *cache;
index a442dcaf25fe72f1a9fa08d4bf85bca145d95030..ecb7e15495d2a1706fa013c0d9b9741af90aa328 100644 (file)
@@ -37,7 +37,7 @@ struct consumer_metadata_cache {
 
 int consumer_metadata_cache_write(struct lttng_consumer_channel *channel,
                unsigned int offset, unsigned int len, uint64_t version,
-               char *data);
+               const char *data);
 int consumer_metadata_cache_allocate(struct lttng_consumer_channel *channel);
 void consumer_metadata_cache_destroy(struct lttng_consumer_channel *channel);
 int consumer_metadata_cache_flushed(struct lttng_consumer_channel *channel,
This page took 0.035194 seconds and 4 git commands to generate.