diff options
author | Jon Loeliger <jdl@netgate.com> | 2017-01-31 13:19:40 -0600 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-02-02 17:30:40 +0000 |
commit | 8a2aea3fce9dad7c729c82ee39ce95b4f357bc83 (patch) | |
tree | b8bec671aa04e8f98a369ebb66f7d03f5523980b /src/plugins/lb/lb_test.c | |
parent | a9374df5f351d25e968f5f90a827796203cbafdd (diff) |
Ensure all M() and M2() second parameters are the message pointer.
Rather than maintain (?) an unused second parameter, t, and pull
an unbound message pointer, mp, out of context, explicitly list
the message pointer as the second parameter.
Change-Id: I92143efda6211cdf6b935470f8c71579742a6b64
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/plugins/lb/lb_test.c')
-rw-r--r-- | src/plugins/lb/lb_test.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/plugins/lb/lb_test.c b/src/plugins/lb/lb_test.c index 9d55e4a72ab..c150ea322ae 100644 --- a/src/plugins/lb/lb_test.c +++ b/src/plugins/lb/lb_test.c @@ -145,7 +145,9 @@ static int api_lb_conf (vat_main_t * vam) return -99; } - M(LB_CONF, lb_conf); S; W; + M(LB_CONF, mp); + S; + W; /* NOTREACHED */ return 0; @@ -183,7 +185,9 @@ static int api_lb_add_del_vip (vat_main_t * vam) mps.is_del = 1; } - M(LB_ADD_DEL_VIP, lb_add_del_vip); S; W; + M(LB_ADD_DEL_VIP, mp); + S; + W; /* NOTREACHED */ return 0; } @@ -206,7 +210,9 @@ static int api_lb_add_del_as (vat_main_t * vam) mps.is_del = 1; } - M(LB_ADD_DEL_AS, lb_add_del_as); S; W; + M(LB_ADD_DEL_AS, mp); + S; + W; /* NOTREACHED */ return 0; } |