From 01f07fb952990cabea04691b96566297ab757beb Mon Sep 17 00:00:00 2001 From: Gao feng Date: Thu, 27 Aug 2015 19:25:10 +0800 Subject: [PATCH] remove channel in pod Signed-off-by: Gao feng --- src/hyper.h | 1 - src/init.c | 1 - src/parse.c | 3 --- 3 files changed, 5 deletions(-) diff --git a/src/hyper.h b/src/hyper.h index 833dc5c..c4d4e99 100644 --- a/src/hyper.h +++ b/src/hyper.h @@ -40,7 +40,6 @@ struct hyper_pod { struct list_head ce_head; char *hostname; char *tag; - char *channel; int init_pid; uint32_t c_num; uint32_t i_num; diff --git a/src/init.c b/src/init.c index c2e7409..588f13b 100644 --- a/src/init.c +++ b/src/init.c @@ -657,7 +657,6 @@ static int hyper_stop_pod(struct hyper_pod *pod) hyper_cleanup_network(pod); hyper_cleanup_shared(pod); - free(pod->channel); free(pod->hostname); sync(); diff --git a/src/parse.c b/src/parse.c index 160b034..6662e37 100644 --- a/src/parse.c +++ b/src/parse.c @@ -437,9 +437,6 @@ realloc: goto out; i += next; - } else if (json_token_streq(json, t, "socket") && t->size == 1) { - pod->channel = strdup(json_token_str(json, &toks[++i])); - fprintf(stdout, "channel is %s\n", pod->channel); } else if (json_token_streq(json, t, "shareDir") && t->size == 1) { pod->tag = strdup(json_token_str(json, &toks[++i])); fprintf(stdout, "9p tag is %s\n", pod->tag);