From: Richard Mudgett Date: Wed, 27 Feb 2013 20:21:40 +0000 (+0000) Subject: Fix compiler warning by eliminating the need for a cast. X-Git-Tag: 13.0.0-beta1~2056 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31f08344eed9ab0020a35637b949d200b2644f01;p=thirdparty%2Fasterisk.git Fix compiler warning by eliminating the need for a cast. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382203 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index d47827d2d7..c68925f992 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -4638,7 +4638,7 @@ static char *handle_skinny_show_settings(struct ast_cli_entry *e, int cmd, struc return CLI_SUCCESS; } -static char *_skinny_message_set(int type, int fd, struct mansession *s, const struct message *m, int argc, const char *argv[]) +static char *_skinny_message_set(int type, int fd, struct mansession *s, const struct message *m, int argc, const char * const *argv) { struct skinny_device *d; char text_buf[32]; @@ -4685,10 +4685,10 @@ static char *handle_skinny_message_set(struct ast_cli_entry *e, int cmd, struct return complete_skinny_show_device(a->line, a->word, a->pos, a->n); } - return _skinny_message_set(0, a->fd, NULL, NULL, a->argc, (const char **) a->argv); + return _skinny_message_set(0, a->fd, NULL, NULL, a->argc, a->argv); } -static char *_skinny_message_clear(int type, int fd, struct mansession *s, const struct message *m, int argc, const char *argv[]) +static char *_skinny_message_clear(int type, int fd, struct mansession *s, const struct message *m, int argc, const char * const *argv) { struct skinny_device *d; @@ -4721,7 +4721,7 @@ static char *handle_skinny_message_clear(struct ast_cli_entry *e, int cmd, struc return complete_skinny_show_device(a->line, a->word, a->pos, a->n); } - return _skinny_message_clear(0, a->fd, NULL, NULL, a->argc, (const char **) a->argv); + return _skinny_message_clear(0, a->fd, NULL, NULL, a->argc, a->argv); } static struct ast_cli_entry cli_skinny[] = {