[ltt-dev] [PATCH 2/4] char *->const char * for ltt_relay_create_channel
Zhaolei
zhaolei at cn.fujitsu.com
Thu Oct 23 06:46:23 EDT 2008
trace_name and trace_name are not changed in function.
so we should define them as const char *
Signed-off-by: Zhao Lei <zhaolei at cn.fujitsu.com>
---
include/linux/ltt-tracer.h | 4 ++--
ltt/ltt-relay-locked.c | 4 ++--
ltt/ltt-relay.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/linux/ltt-tracer.h b/include/linux/ltt-tracer.h
index f59cb02..a1c6c14 100644
--- a/include/linux/ltt-tracer.h
+++ b/include/linux/ltt-tracer.h
@@ -191,8 +191,8 @@ struct ltt_trace_ops {
/* End of first 32 bytes cacheline */
int (*create_dirs) (struct ltt_trace_struct *new_trace);
void (*remove_dirs) (struct ltt_trace_struct *new_trace);
- int (*create_channel) (char *trace_name, struct ltt_trace_struct *trace,
- struct dentry *dir, char *channel_name,
+ int (*create_channel) (const char *trace_name, struct ltt_trace_struct *trace,
+ struct dentry *dir, const char *channel_name,
struct ltt_channel_struct **ltt_chan,
unsigned int subbuf_size,
unsigned int n_subbufs, int overwrite);
diff --git a/ltt/ltt-relay-locked.c b/ltt/ltt-relay-locked.c
index b8423a6..779ff89 100644
--- a/ltt/ltt-relay-locked.c
+++ b/ltt/ltt-relay-locked.c
@@ -710,9 +710,9 @@ static void ltt_relay_destroy_buffer(struct ltt_channel_struct *ltt_chan,
/*
* Create channel.
*/
-static int ltt_relay_create_channel(char *trace_name,
+static int ltt_relay_create_channel(const char *trace_name,
struct ltt_trace_struct *trace, struct dentry *dir,
- char *channel_name, struct ltt_channel_struct **ltt_chan,
+ const char *channel_name, struct ltt_channel_struct **ltt_chan,
unsigned int subbuf_size, unsigned int n_subbufs,
int overwrite)
{
diff --git a/ltt/ltt-relay.c b/ltt/ltt-relay.c
index cf17bae..86f5082 100644
--- a/ltt/ltt-relay.c
+++ b/ltt/ltt-relay.c
@@ -723,9 +723,9 @@ static void ltt_relay_destroy_buffer(struct ltt_channel_struct *ltt_chan,
/*
* Create channel.
*/
-static int ltt_relay_create_channel(char *trace_name,
+static int ltt_relay_create_channel(const char *trace_name,
struct ltt_trace_struct *trace, struct dentry *dir,
- char *channel_name, struct ltt_channel_struct **ltt_chan,
+ const char *channel_name, struct ltt_channel_struct **ltt_chan,
unsigned int subbuf_size, unsigned int n_subbufs,
int overwrite)
{
--
1.5.5.3
More information about the lttng-dev
mailing list