mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Merge "main/asterisk.c: Remove silly usage of RAII_VAR."
This commit is contained in:
@@ -1027,7 +1027,7 @@ int ast_pbx_uuid_get(char *pbx_uuid, int length)
|
||||
|
||||
static void publish_fully_booted(void)
|
||||
{
|
||||
RAII_VAR(struct ast_json *, json_object, NULL, ast_json_unref);
|
||||
struct ast_json *json_object;
|
||||
int uptime = 0;
|
||||
int lastreloaded = 0;
|
||||
struct timeval tmp;
|
||||
@@ -1048,6 +1048,7 @@ static void publish_fully_booted(void)
|
||||
"Uptime", uptime,
|
||||
"LastReload", lastreloaded);
|
||||
ast_manager_publish_event("FullyBooted", EVENT_FLAG_SYSTEM, json_object);
|
||||
ast_json_unref(json_object);
|
||||
}
|
||||
|
||||
static void ast_run_atexits(int run_cleanups)
|
||||
|
Reference in New Issue
Block a user