mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-09-03 12:11:34 +00:00
add const to container id in hyper_find_container()
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user