xl2tpd: refactor for more resilience.
[feed/packages.git] / net / xl2tpd / patches / 205-xl2tpd-fix-typo-in-reporting-available-lns-count.patch
1 From 1c148f6645f43bf5abd8a9b8f0708a598b357d97 Mon Sep 17 00:00:00 2001
2 From: Yousong Zhou <yszhou4tech@gmail.com>
3 Date: Thu, 14 May 2015 19:56:39 +0800
4 Subject: [PATCH 205/210] xl2tpd: fix typo in reporting available lns count.
5
6 ---
7 xl2tpd.c | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/xl2tpd.c b/xl2tpd.c
11 index c9b7579..6c945fc 100644
12 --- a/xl2tpd.c
13 +++ b/xl2tpd.c
14 @@ -1039,7 +1039,7 @@ int control_handle_available(FILE* resf, char* bufp){
15 lns_count++;
16 }
17
18 - write_res (resf, "%02i AVAILABLE lns.cout=%d\n", 0, lns_count);
19 + write_res (resf, "%02i AVAILABLE lns.count=%d\n", 0, lns_count);
20
21 lac = laclist;
22 int lac_count = 0;
23 @@ -1053,7 +1053,7 @@ int control_handle_available(FILE* resf, char* bufp){
24 if(deflac){
25 write_res (resf, "%02i AVAILABLE lac.%d.name=%s\n", 0, lac_count, deflac->entname);
26 lac_count++;
27 - }
28 + }
29
30 write_res (resf, "%02i AVAILABLE lac.count=%d\n", 0, lac_count);
31 return 1;
32 --
33 1.7.10.4
34