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>
This commit is contained in:
Jon Loeliger
2017-01-31 13:19:40 -06:00
committed by Dave Barach
parent a9374df5f3
commit 8a2aea3fce
12 changed files with 285 additions and 284 deletions

View File

@ -170,7 +170,7 @@ static int api_" plugin-name "_enable_disable (vat_main_t * vam)
}
/* Construct the API message */
M(" PLUGIN-NAME "_ENABLE_DISABLE, " plugin-name "_enable_disable);
M(" PLUGIN-NAME "_ENABLE_DISABLE, mp);
mp->sw_if_index = ntohl (sw_if_index);
mp->enable_disable = enable_disable;