- Simplify a line with ARRAY_LEN()

- Make a few little formatting changes


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Russell Bryant 18 years ago
parent 79be2b8b0e
commit e8f7cbf358

@ -4561,7 +4561,7 @@ void ast_moh_cleanup(struct ast_channel *chan)
void ast_channels_init(void) void ast_channels_init(void)
{ {
ast_cli_register_multiple(cli_channel, sizeof(cli_channel) / sizeof(struct ast_cli_entry)); ast_cli_register_multiple(cli_channel, ARRAY_LEN(cli_channel));
} }
/*! \brief Print call group and pickup group ---*/ /*! \brief Print call group and pickup group ---*/
@ -4619,9 +4619,12 @@ static int silence_generator_generate(struct ast_channel *chan, void *data, int
.samples = samples, .samples = samples,
.datalen = sizeof(buf), .datalen = sizeof(buf),
}; };
memset(buf, 0, sizeof(buf)); memset(buf, 0, sizeof(buf));
if (ast_write(chan, &frame)) if (ast_write(chan, &frame))
return -1; return -1;
return 0; return 0;
} }

Loading…
Cancel
Save