[asterisk-commits] trunk - r8338 /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 20 10:27:52 MST 2006


Author: kpfleming
Date: Fri Jan 20 11:27:51 2006
New Revision: 8338

URL: http://svn.digium.com/view/asterisk?rev=8338&view=rev
Log:
eliminate compiler warnings from recent const-ification

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=8338&r1=8337&r2=8338&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Fri Jan 20 11:27:51 2006
@@ -9253,7 +9253,7 @@
 	return 0;
 }
 
-static char *complete_span_helper(char *line, char *word, int pos, int state, int rpos)
+static char *complete_span_helper(const char *line, const char *word, int pos, int state, int rpos)
 {
 	int span=1;
 	char tmp[50];
@@ -9271,12 +9271,12 @@
 		return NULL;
 }
 
-static char *complete_span_4(char *line, char *word, int pos, int state)
+static char *complete_span_4(const char *line, const char *word, int pos, int state)
 {
 	return complete_span_helper(line,word,pos,state,3);
 }
 
-static char *complete_span_5(char *line, char *word, int pos, int state)
+static char *complete_span_5(const char *line, const char *word, int pos, int state)
 {
 	return complete_span_helper(line,word,pos,state,4);
 }
@@ -9483,19 +9483,19 @@
 	return RESULT_SUCCESS;
 }
 
-static char pri_debug_help[] = 
+static const char pri_debug_help[] = 
 	"Usage: pri debug span <span>\n"
 	"       Enables debugging on a given PRI span\n";
 	
-static char pri_no_debug_help[] = 
+static const char pri_no_debug_help[] = 
 	"Usage: pri no debug span <span>\n"
 	"       Disables debugging on a given PRI span\n";
 
-static char pri_really_debug_help[] = 
+static const char pri_really_debug_help[] = 
 	"Usage: pri intensive debug span <span>\n"
 	"       Enables debugging down to the Q.921 level\n";
 
-static char pri_show_span_help[] = 
+static const char pri_show_span_help[] = 
 	"Usage: pri show span <span>\n"
 	"       Displays PRI Information\n";
 



More information about the asterisk-commits mailing list