From: Jérémie Galarneau Date: Wed, 22 Jan 2014 16:50:10 +0000 (-0500) Subject: session_find_by_name does not need a non-const name param X-Git-Tag: v2.5.0-rc1~134 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=58a1a22777f5c91e3dd6f110157f3b43d59af2f8;p=lttng-tools.git session_find_by_name does not need a non-const name param Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c index e7904472f..cd59cb7ab 100644 --- a/src/bin/lttng-sessiond/session.c +++ b/src/bin/lttng-sessiond/session.c @@ -160,7 +160,7 @@ void session_unlock(struct ltt_session *session) * NULL is returned. This must be called with the session lock held using * session_lock_list and session_unlock_list. */ -struct ltt_session *session_find_by_name(char *name) +struct ltt_session *session_find_by_name(const char *name) { struct ltt_session *iter; diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h index e052d6d33..9113faf8a 100644 --- a/src/bin/lttng-sessiond/session.h +++ b/src/bin/lttng-sessiond/session.h @@ -116,7 +116,7 @@ void session_lock_list(void); void session_unlock(struct ltt_session *session); void session_unlock_list(void); -struct ltt_session *session_find_by_name(char *name); +struct ltt_session *session_find_by_name(const char *name); struct ltt_session_list *session_get_list(void); int session_access_ok(struct ltt_session *session, uid_t uid, gid_t gid);