aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-01-02 13:28:42 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-01-02 13:28:42 +0100
commit9c1c9a1ba46eb9ddada4167ce9d20143ee3c9636 (patch)
tree470abb8eaf2e4f5800ab3d0e486ce68b2bb730a8
parenta1069bceb51ca4472d121eb205f2a3082e5dcda3 (diff)
afb-binding.hpp: Fix constexpr of 'binding'
Change-Id: Icdee4029f11dcb6c0f75e945e0b411ea63654afe Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--include/afb/afb-binding.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/afb/afb-binding.hpp b/include/afb/afb-binding.hpp
index 6e7d4c2e..5942f76c 100644
--- a/include/afb/afb-binding.hpp
+++ b/include/afb/afb-binding.hpp
@@ -585,7 +585,7 @@ constexpr afb_verb_v2 verbend()
return r;
}
-const afb_binding_v2 binding(const char *name, const struct afb_verb_v2 *verbs, const char *info = nullptr, int (*init)() = nullptr, const char *specification = nullptr, void (*onevent)(const char*, struct json_object*) = nullptr, bool noconcurrency = false, int (*preinit)() = nullptr)
+constexpr afb_binding_v2 binding(const char *name, const struct afb_verb_v2 *verbs, const char *info = nullptr, int (*init)() = nullptr, const char *specification = nullptr, void (*onevent)(const char*, struct json_object*) = nullptr, bool noconcurrency = false, int (*preinit)() = nullptr)
{
afb_binding_v2 r = { 0, 0, 0, 0, 0, 0, 0, 0 };
r.api = name;