[asterisk-commits] file: trunk r49816 - /trunk/funcs/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jan 7 12:00:37 MST 2007


Author: file
Date: Sun Jan  7 13:00:36 2007
New Revision: 49816

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49816
Log:
One const, two const. Let's stick with everything else - one const. Plus older versions of GCC don't support double const either.

Modified:
    trunk/funcs/func_base64.c
    trunk/funcs/func_blacklist.c
    trunk/funcs/func_callerid.c

Modified: trunk/funcs/func_base64.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_base64.c?view=diff&rev=49816&r1=49815&r2=49816
==============================================================================
--- trunk/funcs/func_base64.c (original)
+++ trunk/funcs/func_base64.c Sun Jan  7 13:00:36 2007
@@ -37,7 +37,7 @@
 #include "asterisk/utils.h"
 #include "asterisk/app.h"
 
-static int base64_encode(struct ast_channel *chan, const const char *cmd, char *data,
+static int base64_encode(struct ast_channel *chan, const char *cmd, char *data,
 			 char *buf, size_t len)
 {
 	if (ast_strlen_zero(data)) {
@@ -50,7 +50,7 @@
 	return 0;
 }
 
-static int base64_decode(struct ast_channel *chan, const const char *cmd, char *data,
+static int base64_decode(struct ast_channel *chan, const char *cmd, char *data,
 			 char *buf, size_t len)
 {
 	if (ast_strlen_zero(data)) {

Modified: trunk/funcs/func_blacklist.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_blacklist.c?view=diff&rev=49816&r1=49815&r2=49816
==============================================================================
--- trunk/funcs/func_blacklist.c (original)
+++ trunk/funcs/func_blacklist.c Sun Jan  7 13:00:36 2007
@@ -47,7 +47,7 @@
 #include "asterisk/astdb.h"
 #include "asterisk/options.h"
 
-static int blacklist_read(struct ast_channel *chan, const const char *cmd, char *data, char *buf, size_t len)
+static int blacklist_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
 {
 	char blacklist[1];
 	int bl = 0;

Modified: trunk/funcs/func_callerid.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_callerid.c?view=diff&rev=49816&r1=49815&r2=49816
==============================================================================
--- trunk/funcs/func_callerid.c (original)
+++ trunk/funcs/func_callerid.c Sun Jan  7 13:00:36 2007
@@ -38,7 +38,7 @@
 #include "asterisk/options.h"
 #include "asterisk/callerid.h"
 
-static int callerid_read(struct ast_channel *chan, const const char *cmd, char *data,
+static int callerid_read(struct ast_channel *chan, const char *cmd, char *data,
 			 char *buf, size_t len)
 {
 	char *opt = data;
@@ -96,7 +96,7 @@
 	return 0;
 }
 
-static int callerid_write(struct ast_channel *chan, const const char *cmd, char *data,
+static int callerid_write(struct ast_channel *chan, const char *cmd, char *data,
 			  const char *value)
 {
 	if (!value)



More information about the asterisk-commits mailing list