[ltt-dev] [PATCH v2 3/3] char *->const char * for channel_name in ltt_relay_create_channel
Zhaolei
zhaolei at cn.fujitsu.com
Mon Nov 10 07:39:33 EST 2008
channel_name should not be 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 | 2 +-
ltt/ltt-relay-locked.c | 2 +-
ltt/ltt-relay.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
mode change 100644 => 100755 include/linux/ltt-tracer.h
mode change 100644 => 100755 ltt/ltt-relay-locked.c
mode change 100644 => 100755 ltt/ltt-relay.c
diff --git a/include/linux/ltt-tracer.h b/include/linux/ltt-tracer.h
old mode 100644
new mode 100755
index c4ac07c..17e8343
--- a/include/linux/ltt-tracer.h
+++ b/include/linux/ltt-tracer.h
@@ -174,7 +174,7 @@ struct ltt_trace_ops {
void (*remove_dirs) (struct ltt_trace_struct *new_trace);
int (*create_channel) (const char *trace_name,
struct ltt_trace_struct *trace,
- struct dentry *dir, char *channel_name,
+ 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
old mode 100644
new mode 100755
index 0d9919a..7e6ef98
--- a/ltt/ltt-relay-locked.c
+++ b/ltt/ltt-relay-locked.c
@@ -720,7 +720,7 @@ static void ltt_relay_destroy_buffer(struct ltt_channel_struct *ltt_chan,
*/
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
old mode 100644
new mode 100755
index 358374f..b2490bf
--- a/ltt/ltt-relay.c
+++ b/ltt/ltt-relay.c
@@ -733,7 +733,7 @@ static void ltt_relay_destroy_buffer(struct ltt_channel_struct *ltt_chan,
*/
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