[asterisk-commits] rizzo: trunk r47185 - /trunk/main/app.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 18:32:31 MST 2006


Author: rizzo
Date: Fri Nov  3 19:32:31 2006
New Revision: 47185

URL: http://svn.digium.com/view/asterisk?rev=47185&view=rev
Log:
remove a useless cast


Modified:
    trunk/main/app.c

Modified: trunk/main/app.c
URL: http://svn.digium.com/view/asterisk/trunk/main/app.c?rev=47185&r1=47184&r2=47185&view=diff
==============================================================================
--- trunk/main/app.c (original)
+++ trunk/main/app.c Fri Nov  3 19:32:31 2006
@@ -344,7 +344,7 @@
 		if (filename[0] == '/') 
 			ast_copy_string(tmpf, filename, sizeof(tmpf));
 		else
-			snprintf(tmpf, sizeof(tmpf), "%s/%s/%s", (char *)ast_config_AST_DATA_DIR, "sounds", filename);
+			snprintf(tmpf, sizeof(tmpf), "%s/%s/%s", ast_config_AST_DATA_DIR, "sounds", filename);
 		fd = open(tmpf, O_RDONLY);
 		if (fd < 0){
 			ast_log(LOG_WARNING, "Unable to open file '%s': %s\n", tmpf, strerror(errno));



More information about the asterisk-commits mailing list