mirror of
https://github.com/emqx/neuron.git
synced 2026-10-28 22:59:34 +08:00
Fix the constant expression problem of gcc.
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
|
||||
#include "neuron.h"
|
||||
|
||||
#define SAMPLE_PLUGIN_DESCR "A sample plugin for demonstrate how to write a neuron plugin"
|
||||
|
||||
const neu_plugin_module_t neu_plugin_module;
|
||||
|
||||
struct neu_plugin {
|
||||
@@ -138,11 +140,9 @@ static const neu_plugin_intf_funs_t plugin_intf_funs = { .open =
|
||||
.request = sample_plugin_request,
|
||||
.event_reply = sample_plugin_event_reply };
|
||||
|
||||
static const char *const sample_plugin_descr =
|
||||
"A sample plugin for demonstrate how to write a neuron plugin";
|
||||
|
||||
const neu_plugin_module_t neu_plugin_module = { .version =
|
||||
NEURON_PLUGIN_VER_1_0,
|
||||
.module_name = "neuron-sample-plugin",
|
||||
.module_descr = sample_plugin_descr,
|
||||
.module_descr = SAMPLE_PLUGIN_DESCR,
|
||||
.intf_funs = &plugin_intf_funs };
|
||||
|
||||
Reference in New Issue
Block a user