From: zhaolei@cn.fujitsu.com (Zhaolei)
Subject: [ltt-dev] [PATCH 2/4] char *->const char * for ltt_relay_create_channel
Date: Thu, 23 Oct 2008 18:46:23 +0800 [thread overview]
Message-ID: <490055FF.5050600@cn.fujitsu.com> (raw)
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
next reply other threads:[~2008-10-23 10:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-23 10:46 Zhaolei [this message]
2008-10-24 14:20 ` Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=490055FF.5050600@cn.fujitsu.com \
--to=zhaolei@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox