mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user