mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Fix more "set but unused" warnings.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@317474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -2603,6 +2603,7 @@ static char *dundi_show_peer(struct ast_cli_entry *e, int cmd, struct ast_cli_ar | ||||
| 		} | ||||
| 		ast_cli(a->fd, "Peer:    %s\n", ast_eid_to_str(eid_str, sizeof(eid_str), &peer->eid)); | ||||
| 		ast_cli(a->fd, "Model:   %s\n", model2str(peer->model)); | ||||
| 		ast_cli(a->fd, "Order:   %s\n", order); | ||||
| 		ast_cli(a->fd, "Host:    %s\n", peer->addr.sin_addr.s_addr ? ast_inet_ntoa(peer->addr.sin_addr) : "<Unspecified>"); | ||||
| 		ast_cli(a->fd, "Port:    %d\n", ntohs(peer->addr.sin_port)); | ||||
| 		ast_cli(a->fd, "Dynamic: %s\n", peer->dynamic ? "yes" : "no"); | ||||
|   | ||||
| @@ -1343,12 +1343,12 @@ static int lua_find_extension(lua_State *L, const char *context, const char *ext | ||||
| 	 | ||||
| 	/* step through the extensions looking for a match */ | ||||
| 	for (i = 1; i < lua_objlen(L, context_order_table) + 1; i++) { | ||||
| 		int e_index, e_index_copy, match = 0; | ||||
| 		int e_index_copy, match = 0; | ||||
| 		const char *e; | ||||
|  | ||||
| 		lua_pushinteger(L, i); | ||||
| 		lua_gettable(L, context_order_table); | ||||
| 		e_index = lua_gettop(L); | ||||
| 		lua_gettop(L); | ||||
|  | ||||
| 		/* copy the key at the top of the stack for use later */ | ||||
| 		lua_pushvalue(L, -1); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user