mirror of
https://github.com/nanomq/nanomq.git
synced 2025-07-07 21:55:35 +00:00
* FIX [nng/rest_api] fix func definetion issue complained by NDK compiler
Signed-off-by: jaylin <jaylin@emqx.io>
This commit is contained in:
@ -18,7 +18,6 @@
|
||||
#include "nng/supplemental/nanolib/base64.h"
|
||||
#include "nng/supplemental/nanolib/cJSON.h"
|
||||
#include "nng/supplemental/nanolib/file.h"
|
||||
#include "nng/supplemental/nanolib/hocon.h"
|
||||
|
||||
#include "include/rest_api.h"
|
||||
#include "include/bridge.h"
|
||||
@ -2988,7 +2987,7 @@ update_config(http_msg *msg)
|
||||
{
|
||||
http_msg res = { .status = NNG_HTTP_STATUS_OK };
|
||||
conf * config = get_global_conf();
|
||||
cJSON *req = hocon_parse_str(msg->data, msg->data_len);
|
||||
cJSON *req = (cJSON *)nng_hocon_parse_str(msg->data, msg->data_len);
|
||||
if (!cJSON_IsObject(req)) {
|
||||
return error_response(msg, NNG_HTTP_STATUS_BAD_REQUEST,
|
||||
PARAMS_HOCON_FORMAT_ILLEGAL);
|
||||
|
2
nng
2
nng
Submodule nng updated: df4234f8a4...3a5782fc84
Reference in New Issue
Block a user