Fix build under dev mode and remove some casts that are no longer necessary as
authorSean Bright <sean@malleable.com>
Fri, 22 May 2009 16:10:33 +0000 (16:10 +0000)
committerSean Bright <sean@malleable.com>
Fri, 22 May 2009 16:10:33 +0000 (16:10 +0000)
a result of the const-ify the world patch.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196227 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c
main/pbx.c
res/res_jabber.c
res/res_monitor.c

index ce490e6..fed6c12 100644 (file)
@@ -3991,7 +3991,7 @@ static int dahdi_send_keypad_facility_exec(struct ast_channel *chan, const char
 {
        /* Data will be our digit string */
        struct dahdi_pvt *p;
-       const char *digits = (const char *) data;
+       const char *digits = data;
 
        if (ast_strlen_zero(digits)) {
                ast_debug(1, "No digit string sent to application!\n");
index c567634..f64810e 100644 (file)
@@ -942,7 +942,9 @@ static int pbx_builtin_saydigits(struct ast_channel *, const char *);
 static int pbx_builtin_saycharacters(struct ast_channel *, const char *);
 static int pbx_builtin_sayphonetic(struct ast_channel *, const char *);
 static int matchcid(const char *cidpattern, const char *callerid);
+#ifdef NEED_DEBUG
 static void log_match_char_tree(struct match_char *node, char *prefix); /* for use anywhere */
+#endif
 static int pbx_builtin_importvar(struct ast_channel *, const char *);
 static void set_ext_pri(struct ast_channel *c, const char *exten, int pri);
 static void new_find_extension(const char *str, struct scoreboard *score,
@@ -1488,6 +1490,7 @@ static void update_scoreboard(struct scoreboard *board, int length, int spec, st
 #endif
 }
 
+#ifdef NEED_DEBUG
 static void log_match_char_tree(struct match_char *node, char *prefix)
 {
        char extenstr[40];
@@ -1516,6 +1519,7 @@ static void log_match_char_tree(struct match_char *node, char *prefix)
        if (node->alt_char)
                log_match_char_tree(node->alt_char, prefix);
 }
+#endif
 
 static void cli_match_char_tree(struct match_char *node, char *prefix, int fd)
 {
index 72f1496..314e991 100644 (file)
@@ -561,7 +561,7 @@ static int aji_send_exec(struct ast_channel *chan, const char *data)
 
        AST_STANDARD_APP_ARGS(args, s);
        if (args.argc < 3) {
-               ast_log(LOG_ERROR, "JabberSend requires 3 arguments: '%s'\n", (char *) data);
+               ast_log(LOG_ERROR, "JabberSend requires 3 arguments: '%s'\n", data);
                return -1;
        }
 
index 491ee0c..83bd0a5 100644 (file)
@@ -476,12 +476,12 @@ static int start_monitor_exec(struct ast_channel *chan, const char *data)
        );
        
        /* Parse arguments. */
-       if (ast_strlen_zero((char*)data)) {
+       if (ast_strlen_zero(data)) {
                ast_log(LOG_ERROR, "Monitor requires an argument\n");
                return 0;
        }
 
-       parse = ast_strdupa((char*)data);
+       parse = ast_strdupa(data);
        AST_STANDARD_APP_ARGS(args, parse);
 
        if (!ast_strlen_zero(args.options)) {