diff options
author | Jon Loeliger <jdl@netgate.com> | 2017-01-31 14:03:33 -0600 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-02-02 17:31:37 +0000 |
commit | 7bc770ceb62ede18414b7bb5788692e32477e373 (patch) | |
tree | a0898e2e7b3b994c9edbc2442328545513849bec /build-root/emacs-lisp/plugin-test-skel.el | |
parent | 614e97d87b46853384cf0dcf1d59aaf9f4b2fa92 (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 'build-root/emacs-lisp/plugin-test-skel.el')
-rw-r--r-- | build-root/emacs-lisp/plugin-test-skel.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-root/emacs-lisp/plugin-test-skel.el b/build-root/emacs-lisp/plugin-test-skel.el index d69aa2ce7c0..6d399468494 100644 --- a/build-root/emacs-lisp/plugin-test-skel.el +++ b/build-root/emacs-lisp/plugin-test-skel.el @@ -128,7 +128,7 @@ do { \\ } while(0); /* S: send a message */ -#define S (vl_msg_api_send_shmem (vam->vl_input_queue, (u8 *)&mp)) +#define S(mp) (vl_msg_api_send_shmem (vam->vl_input_queue, (u8 *)&mp)) /* W: wait for results, with timeout */ #define W \\ @@ -175,7 +175,7 @@ static int api_" plugin-name "_enable_disable (vat_main_t * vam) mp->enable_disable = enable_disable; /* send it... */ - S; + S(mp); /* Wait for a reply... */ W; |