ubus: Rename "ubus_add_oject" function

Rename function `ubus_add_oject` -> `ubus_add_dawn_object` to avoid
confusion and potential collision with function `add_ubus_object` from
libubus.

Signed-off-by: Martin Matějek <martin.matejek@gmx.com>
This commit is contained in:
Martin Matějek 2022-10-23 19:57:51 +02:00 committed by Nick Hainke
parent 9e8060ea09
commit 3d09fe9cfa

View file

@ -212,7 +212,7 @@ static int get_network(struct ubus_context *ctx_local, struct ubus_object *obj,
struct ubus_request_data *req, const char *method,
struct blob_attr *msg);
static void ubus_add_oject();
static void ubus_add_dawn_object();
static void respond_to_notify(uint32_t id);
@ -795,7 +795,7 @@ int dawn_init_ubus(const char *ubus_socket, const char *hostapd_dir) {
if(timeout_config.update_beacon_reports) // allow setting timeout to 0
uloop_timeout_add(&beacon_reports_timer); // callback = update_beacon_reports
ubus_add_oject();
ubus_add_dawn_object();
if (network_config.network_option == 2
|| network_config.network_option == 3)
@ -1618,7 +1618,7 @@ static int get_network(struct ubus_context *ctx_local, struct ubus_object *obj,
return 0;
}
static void ubus_add_oject() {
static void ubus_add_dawn_object() {
int ret;
dawnlog_debug_func("Entering...");