From 23dad17cfbe81dec6514583a11c70101bf1f212c Mon Sep 17 00:00:00 2001 From: Magnus Edenhill Date: Wed, 21 Aug 2013 00:20:51 +0200 Subject: [PATCH] Constified rd_kafka_name() argument --- rdkafka.c | 2 +- rdkafka.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rdkafka.c b/rdkafka.c index 3fdb6bec..00a93dff 100644 --- a/rdkafka.c +++ b/rdkafka.c @@ -658,7 +658,7 @@ void rd_kafka_dump (FILE *fp, rd_kafka_t *rk) { -const char *rd_kafka_name (rd_kafka_t *rk) { +const char *rd_kafka_name (const rd_kafka_t *rk) { return rk->rk_name; } diff --git a/rdkafka.h b/rdkafka.h index 6b78aafc..cb424101 100644 --- a/rdkafka.h +++ b/rdkafka.h @@ -463,7 +463,7 @@ void rd_kafka_destroy (rd_kafka_t *rk); /** * Returns the kafka handle name. */ -const char *rd_kafka_name (rd_kafka_t *rk); +const char *rd_kafka_name (const rd_kafka_t *rk);