[asterisk-commits] rmudgett: trunk r382204 - /trunk/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 27 14:31:59 CST 2013


Author: rmudgett
Date: Wed Feb 27 14:31:56 2013
New Revision: 382204

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382204
Log:
More places to eliminate the cast to argv but were not giving warnings.

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=382204&r1=382203&r2=382204
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Wed Feb 27 14:31:56 2013
@@ -4034,7 +4034,7 @@
 		ast_cli(fd, "none");
 }
 
-static char *_skinny_show_devices(int fd, int *total, struct mansession *s, const struct message *m, int argc, const char *argv[])
+static char *_skinny_show_devices(int fd, int *total, struct mansession *s, const struct message *m, int argc, const char * const *argv)
 {
 	struct skinny_device *d;
 	struct skinny_line *l;
@@ -4142,10 +4142,10 @@
 		return NULL;
 	}
 
-	return _skinny_show_devices(a->fd, NULL, NULL, NULL, a->argc, (const char **) a->argv);
-}
-
-static char *_skinny_show_device(int type, int fd, struct mansession *s, const struct message *m, int argc, const char *argv[])
+	return _skinny_show_devices(a->fd, NULL, NULL, NULL, a->argc, a->argv);
+}
+
+static char *_skinny_show_device(int type, int fd, struct mansession *s, const struct message *m, int argc, const char * const *argv)
 {
 	struct skinny_device *d;
 	struct skinny_line *l;
@@ -4282,10 +4282,10 @@
 		return complete_skinny_show_device(a->line, a->word, a->pos, a->n);
 	}
 
-	return _skinny_show_device(0, a->fd, NULL, NULL, a->argc, (const char **) a->argv);
-}
-
-static char *_skinny_show_lines(int fd, int *total, struct mansession *s, const struct message *m, int argc, const char *argv[])
+	return _skinny_show_device(0, a->fd, NULL, NULL, a->argc, a->argv);
+}
+
+static char *_skinny_show_lines(int fd, int *total, struct mansession *s, const struct message *m, int argc, const char * const *argv)
 {
 	struct skinny_line *l;
 	struct skinny_subchannel *sub;
@@ -4406,10 +4406,10 @@
 		return CLI_SHOWUSAGE;
 	}
 
-	return _skinny_show_lines(a->fd, NULL, NULL, NULL, a->argc, (const char **) a->argv);
-}
-
-static char *_skinny_show_line(int type, int fd, struct mansession *s, const struct message *m, int argc, const char *argv[])
+	return _skinny_show_lines(a->fd, NULL, NULL, NULL, a->argc, a->argv);
+}
+
+static char *_skinny_show_line(int type, int fd, struct mansession *s, const struct message *m, int argc, const char * const *argv)
 {
 	struct skinny_device *d;
 	struct skinny_line *l;
@@ -4593,7 +4593,7 @@
 		return complete_skinny_show_line(a->line, a->word, a->pos, a->n);
 	}
 
-	return _skinny_show_line(0, a->fd, NULL, NULL, a->argc, (const char **) a->argv);
+	return _skinny_show_line(0, a->fd, NULL, NULL, a->argc, a->argv);
 }
 
 /*! \brief List global settings for the Skinny subsystem. */




More information about the asterisk-commits mailing list