[svn-commits] rmudgett: trunk r382203 - /trunk/channels/chan_skinny.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Feb 27 14:21:44 CST 2013


Author: rmudgett
Date: Wed Feb 27 14:21:40 2013
New Revision: 382203

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382203
Log:
Fix compiler warning by eliminating the need for a cast.

Modified:
    trunk/channels/chan_skinny.c

Modified: trunk/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=382203&r1=382202&r2=382203
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Wed Feb 27 14:21:40 2013
@@ -4638,7 +4638,7 @@
 	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 @@
 		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);
-}
-
-static char *_skinny_message_clear(int type, int fd, struct mansession *s, const struct message *m, int argc, const char *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 * const *argv)
 {
 	struct skinny_device *d;
 
@@ -4721,7 +4721,7 @@
 		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[] = {




More information about the svn-commits mailing list