* FIX [nng/rest_api] fix func definetion issue complained by NDK compiler

Signed-off-by: jaylin <jaylin@emqx.io>
This commit is contained in:
jaylin
2025-06-19 17:25:51 +08:00
committed by Jaylin
parent f3d69d469e
commit a02df6f7b6
2 changed files with 2 additions and 3 deletions

View File

@ -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

Submodule nng updated: df4234f8a4...3a5782fc84