diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-15 11:18:38 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-17 19:34:27 +0100 |
commit | 599c9a4b9aa3faa0b9c05dfcf6057ad9ccd4dfa6 (patch) | |
tree | 40716cc4f1523af395aaa4902458faabc74389e2 /src/main.c | |
parent | 2ff47b8606d93a301cf6cecb0d32fa4b77f5c5c9 (diff) |
mtp: Allocate the MTPLinkSet as a child of the BSC
In preparation of the VTY code change, make the mtp linkset
a child of the bsc.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -85,7 +85,7 @@ static void sigint() printf("Terminating.\n"); handled = 1; if (bsc && bsc->setup) { - llist_for_each_entry(set, &bsc->links, entry) + llist_for_each_entry(set, &bsc->linksets, entry) link_shutdown_all(set); } @@ -175,7 +175,6 @@ int main(int argc, char **argv) struct mtp_link_set *set; - mtp_link_set_init(); thread_init(); log_init(&log_info); @@ -222,7 +221,6 @@ int main(int argc, char **argv) if (!set) return -1; - llist_add(&set->entry, &bsc->links); set->fw = &bsc->msc_forward; bsc->msc_forward.bsc = set; |