diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-12-18 09:46:18 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-12-18 09:46:18 +0000 |
commit | fd88390af7bcd02958b434d0b6fdb494e721c06c (patch) | |
tree | d2fc0e3293737a646ab91cc4ef176382ed433047 /channels | |
parent | 3ff440bd37445c9261b64fcb08f0d20c976b34e2 (diff) |
remove unnecessary (char *) casts for ast_config_AST_* variables.
There are some left in the .flex files, left to the maintainer...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 2 | ||||
-rw-r--r-- | channels/chan_unistim.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 30ac6c7e6..1d1ba7f78 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -1893,7 +1893,7 @@ static void reload_firmware(int unload) /* Now that we have marked them dead... load new ones */ if (!unload) { - snprintf(dir, sizeof(dir), "%s/firmware/iax", (char *)ast_config_AST_DATA_DIR); + snprintf(dir, sizeof(dir), "%s/firmware/iax", ast_config_AST_DATA_DIR); fwd = opendir(dir); if (fwd) { while((de = readdir(fwd))) { diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index 58ac74875..3021f7c55 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -1711,7 +1711,7 @@ static int write_history(struct unistimsession *pte, char way, char ismissed) return -1; } - snprintf(tmp, sizeof(tmp), "%s/%s", (char *) ast_config_AST_LOG_DIR, USTM_LOG_DIR); + snprintf(tmp, sizeof(tmp), "%s/%s", ast_config_AST_LOG_DIR, USTM_LOG_DIR); if (ast_mkdir(tmp, 0770)) { if (errno != EEXIST) { display_last_error("Unable to create directory for history"); @@ -1731,7 +1731,7 @@ static int write_history(struct unistimsession *pte, char way, char ismissed) atm.tm_year + 1900, atm.tm_mon + 1, atm.tm_mday, atm.tm_hour, atm.tm_min, atm.tm_sec, tmp2); - snprintf(tmp, sizeof(tmp), "%s/%s/%s-%c.csv", (char *) ast_config_AST_LOG_DIR, + snprintf(tmp, sizeof(tmp), "%s/%s/%s-%c.csv", ast_config_AST_LOG_DIR, USTM_LOG_DIR, pte->device->name, way); if ((f = fopen(tmp, "r"))) { struct stat bufstat; @@ -1794,7 +1794,7 @@ static int write_history(struct unistimsession *pte, char way, char ismissed) fclose(f); return -1; } - snprintf(tmp2, sizeof(tmp2), "%s/%s/%s-%c.csv.tmp", (char *) ast_config_AST_LOG_DIR, + snprintf(tmp2, sizeof(tmp2), "%s/%s/%s-%c.csv.tmp", ast_config_AST_LOG_DIR, USTM_LOG_DIR, pte->device->name, way); if (!(f2 = fopen(tmp2, "w"))) { display_last_error("Unable to create temporary history log."); @@ -3036,7 +3036,7 @@ static char OpenHistory(struct unistimsession *pte, char way, FILE ** f) char tmp[AST_CONFIG_MAX_PATH]; char count; - snprintf(tmp, sizeof(tmp), "%s/%s/%s-%c.csv", (char *) ast_config_AST_LOG_DIR, + snprintf(tmp, sizeof(tmp), "%s/%s/%s-%c.csv", ast_config_AST_LOG_DIR, USTM_LOG_DIR, pte->device->name, way); *f = fopen(tmp, "r"); if (!*f) { |