mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
Make sure all array values are initialized, getting rid of compiler warning.
This commit is contained in:
parent
8da8361641
commit
4f2b8b8fb7
@ -81,7 +81,7 @@ int fd_func_enter(struct __sourceloc, struct call_stats *this_call);
|
||||
int fd_func_exit(struct __sourceloc, struct call_stats *this_call);
|
||||
void dump_stack(int log_level);
|
||||
|
||||
#define IN() static struct profile_total _aggregate_stats={NULL,0,__FUNCTION__,0,0,0}; \
|
||||
#define IN() static struct profile_total _aggregate_stats={NULL,0,__FUNCTION__,0,0,0,0}; \
|
||||
struct call_stats _this_call={.totals=&_aggregate_stats}; \
|
||||
fd_func_enter(__HERE__, &_this_call);
|
||||
|
||||
|
@ -546,7 +546,7 @@ struct cli_schema monitor_commands[] = {
|
||||
{monitor_call_audio,{"audio","<token>","<type>","[<time>]","[<sequence>]",NULL},0,""},
|
||||
{monitor_call_hangup, {"hangup","<token>",NULL},0,""},
|
||||
{monitor_call_dtmf, {"dtmf","<token>","<digits>",NULL},0,""},
|
||||
{NULL},
|
||||
{NULL, {NULL, NULL, NULL, NULL},0,NULL},
|
||||
};
|
||||
|
||||
int monitor_process_command(struct monitor_context *c)
|
||||
|
@ -253,7 +253,7 @@ struct cli_schema console_commands[]={
|
||||
{console_hangup,{"hangup",NULL},0,"Hangup the phone line"},
|
||||
{console_usage,{"help",NULL},0,"This usage message"},
|
||||
{console_audio,{"say","...",NULL},0,"Send a text string to the other party"},
|
||||
{NULL},
|
||||
{NULL, {NULL, NULL, NULL}, 0, NULL},
|
||||
};
|
||||
|
||||
static int console_usage(const struct cli_parsed *parsed, struct cli_context *context)
|
||||
|
Loading…
x
Reference in New Issue
Block a user