add const to container id in hyper_find_container()

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
Lai Jiangshan
2016-06-30 12:05:01 +08:00
parent b99768db28
commit b15d771a56
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -769,7 +769,7 @@ fail:
return -1;
}
struct hyper_container *hyper_find_container(struct hyper_pod *pod, char *id)
struct hyper_container *hyper_find_container(struct hyper_pod *pod, const char *id)
{
struct hyper_container *c;
+1 -1
View File
@@ -55,7 +55,7 @@ struct hyper_pod;
int hyper_start_container(struct hyper_container *container,
int utsns, int ipcns, struct hyper_pod *pod);
struct hyper_container *hyper_find_container(struct hyper_pod *pod, char *id);
struct hyper_container *hyper_find_container(struct hyper_pod *pod, const char *id);
void hyper_cleanup_container(struct hyper_container *container, struct hyper_pod *pod);
void hyper_cleanup_containers(struct hyper_pod *pod);
void hyper_free_container(struct hyper_container *c);
-1
View File
@@ -125,7 +125,6 @@ static inline int hyper_create(char *hyper_path)
int hyper_create_file(const char *hyper_path);
int hyper_mkdir(char *hyper_path);
int hyper_open_serial(char *tty);
struct hyper_container *hyper_find_container(struct hyper_pod *pod, char *id);
int hyper_start_containers(struct hyper_pod *pod);
void hyper_cleanup_pod(struct hyper_pod *pod);