summaryrefslogtreecommitdiffstats
path: root/src/plugins/ioam/lib-pot
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2017-01-31 14:03:33 -0600
committerDave Barach <openvpp@barachs.net>2017-02-02 17:31:37 +0000
commit7bc770ceb62ede18414b7bb5788692e32477e373 (patch)
treea0898e2e7b3b994c9edbc2442328545513849bec /src/plugins/ioam/lib-pot
parent614e97d87b46853384cf0dcf1d59aaf9f4b2fa92 (diff)
Convert message macro S to accept a message pointer parameter;
Rather than blindly assume an unbound, fixed message parameter explicilty pass it as a paramter to the S() macro. Change-Id: Ieea1f1815cadd2eec7d9240408d69acdc3caa49a Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/plugins/ioam/lib-pot')
-rw-r--r--src/plugins/ioam/lib-pot/pot_test.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/ioam/lib-pot/pot_test.c b/src/plugins/ioam/lib-pot/pot_test.c
index 48d5bd404da..4f049be8e8a 100644
--- a/src/plugins/ioam/lib-pot/pot_test.c
+++ b/src/plugins/ioam/lib-pot/pot_test.c
@@ -188,7 +188,8 @@ static int api_pot_profile_add (vat_main_t *vam)
mp->id = id;
mp->max_bits = bits;
- S; W;
+ S(mp);
+ W;
OUT:
vec_free(name);
@@ -228,7 +229,8 @@ static int api_pot_profile_activate (vat_main_t *vam)
clib_memcpy(mp->list_name, name, mp->list_name_len);
mp->id = id;
- S; W;
+ S(mp);
+ W;
OUT:
vec_free(name);
@@ -243,7 +245,8 @@ static int api_pot_profile_del (vat_main_t *vam)
M(POT_PROFILE_DEL, mp);
mp->list_name_len = 0;
- S; W;
+ S(mp);
+ W;
return 0;
}
@@ -264,7 +267,8 @@ static int api_pot_profile_show_config_dump (vat_main_t *vam)
mp->id = id;
- S; W;
+ S(mp);
+ W;
return 0;
}