From 7bc770ceb62ede18414b7bb5788692e32477e373 Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Tue, 31 Jan 2017 14:03:33 -0600 Subject: 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 --- src/plugins/acl/acl_test.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/plugins/acl/acl_test.c') diff --git a/src/plugins/acl/acl_test.c b/src/plugins/acl/acl_test.c index 04683a12636..70fd6959594 100644 --- a/src/plugins/acl/acl_test.c +++ b/src/plugins/acl/acl_test.c @@ -276,7 +276,7 @@ static int api_acl_plugin_get_version (vat_main_t * vam) mp->client_index = vam->my_client_index; /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -298,7 +298,7 @@ static int api_macip_acl_interface_get (vat_main_t * vam) mp->client_index = vam->my_client_index; /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -479,7 +479,7 @@ static int api_acl_add_replace (vat_main_t * vam) mp->count = htonl(n_rules); /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -502,7 +502,7 @@ static int api_acl_del (vat_main_t * vam) mp->acl_index = ntohl(acl_index); /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -525,7 +525,7 @@ static int api_macip_acl_del (vat_main_t * vam) mp->acl_index = ntohl(acl_index); /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -592,7 +592,7 @@ static int api_acl_interface_add_del (vat_main_t * vam) mp->is_input = is_input; /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -642,7 +642,7 @@ static int api_macip_acl_interface_add_del (vat_main_t * vam) mp->is_add = is_add; /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -699,7 +699,7 @@ static int api_acl_interface_set_acl_list (vat_main_t * vam) clib_memcpy(mp->acls, inacls, vec_len(inacls)*sizeof(u32)); /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -728,7 +728,7 @@ static int api_acl_interface_list_dump (vat_main_t * vam) mp->sw_if_index = ntohl (sw_if_index); /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -754,7 +754,7 @@ static int api_acl_dump (vat_main_t * vam) mp->acl_index = ntohl (acl_index); /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -780,7 +780,7 @@ static int api_macip_acl_dump (vat_main_t * vam) mp->acl_index = ntohl (acl_index); /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; @@ -912,7 +912,7 @@ static int api_macip_acl_add (vat_main_t * vam) mp->count = htonl(n_rules); /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; -- cgit 1.2.3-korg