session_find_by_name does not need a non-const name param
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 22 Jan 2014 16:50:10 +0000 (11:50 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 6 Mar 2014 19:11:40 +0000 (14:11 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/session.c
src/bin/lttng-sessiond/session.h

index e7904472fb9f5f19113bef0e247160aaff999d38..cd59cb7ab0cec8624992a8ddb90da63e365388fb 100644 (file)
@@ -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;
 
index e052d6d337e10ee69490df9df9181962bd01b248..9113faf8a2dede01570ea9d715498f667326b95b 100644 (file)
@@ -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);
This page took 0.035809 seconds and 4 git commands to generate.