From 3c1b9fc5089e22c951b3018d7430424651e43ed8 Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Sun, 7 Jan 2007 19:00:36 +0000
Subject: [PATCH] One const, two const. Let's stick with everything else - one
 const. Plus older versions of GCC don't support double const either.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 funcs/func_base64.c    | 4 ++--
 funcs/func_blacklist.c | 2 +-
 funcs/func_callerid.c  | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/funcs/func_base64.c b/funcs/func_base64.c
index 0dddc2ca73..e43b4fc6e8 100644
--- a/funcs/func_base64.c
+++ b/funcs/func_base64.c
@@ -37,7 +37,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #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 @@ static int base64_encode(struct ast_channel *chan, const const char *cmd, char *
 	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)) {
diff --git a/funcs/func_blacklist.c b/funcs/func_blacklist.c
index fb6195fb16..d3f829d108 100644
--- a/funcs/func_blacklist.c
+++ b/funcs/func_blacklist.c
@@ -47,7 +47,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #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;
diff --git a/funcs/func_callerid.c b/funcs/func_callerid.c
index aefbf3e153..381fb4d6d4 100644
--- a/funcs/func_callerid.c
+++ b/funcs/func_callerid.c
@@ -38,7 +38,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #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 @@ static int callerid_read(struct ast_channel *chan, const const char *cmd, char *
 	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)
-- 
GitLab