mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Fix compiler warning gcc 4.2.4 found
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@228621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -725,6 +725,7 @@ static char *show_codec_n(struct ast_cli_entry *e, int cmd, struct ast_cli_args | ||||
| { | ||||
| 	format_t codec; | ||||
| 	int i, found = 0; | ||||
| 	long long type_punned_codec; | ||||
|  | ||||
| 	switch (cmd) { | ||||
| 	case CLI_INIT: | ||||
| @@ -740,8 +741,10 @@ static char *show_codec_n(struct ast_cli_entry *e, int cmd, struct ast_cli_args | ||||
| 	if (a->argc != 4) | ||||
| 		return CLI_SHOWUSAGE; | ||||
|  | ||||
| 	if (sscanf(a->argv[3], "%30Ld", (long long *) &codec) != 1) | ||||
| 	if (sscanf(a->argv[3], "%30Ld", &type_punned_codec) != 1) { | ||||
| 		return CLI_SHOWUSAGE; | ||||
| 	} | ||||
| 	codec = type_punned_codec; | ||||
|  | ||||
| 	for (i = 0; i < 63; i++) | ||||
| 		if (codec & (1LL << i)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user