mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
Skinny: remove some unused vars
This commit is contained in:
parent
1cbb8f221b
commit
f217ec48a4
@ -1515,6 +1515,8 @@ static void *SWITCH_THREAD_FUNC skinny_profile_run(switch_thread_t *thread, void
|
|||||||
listener_t *listener;
|
listener_t *listener;
|
||||||
switch_memory_pool_t *tmp_pool = NULL, *listener_pool = NULL;
|
switch_memory_pool_t *tmp_pool = NULL, *listener_pool = NULL;
|
||||||
uint32_t errs = 0;
|
uint32_t errs = 0;
|
||||||
|
switch_sockaddr_t *local_sa = NULL;
|
||||||
|
switch_sockaddr_t *remote_sa =NULL;
|
||||||
|
|
||||||
if (switch_core_new_memory_pool(&tmp_pool) != SWITCH_STATUS_SUCCESS) {
|
if (switch_core_new_memory_pool(&tmp_pool) != SWITCH_STATUS_SUCCESS) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "OH OH no pool\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "OH OH no pool\n");
|
||||||
@ -1598,13 +1600,13 @@ new_socket:
|
|||||||
|
|
||||||
switch_mutex_init(&listener->flag_mutex, SWITCH_MUTEX_NESTED, listener->pool);
|
switch_mutex_init(&listener->flag_mutex, SWITCH_MUTEX_NESTED, listener->pool);
|
||||||
|
|
||||||
switch_socket_addr_get(&listener->remote_sa, SWITCH_TRUE, listener->sock);
|
switch_socket_addr_get(&remote_sa, SWITCH_TRUE, listener->sock);
|
||||||
switch_get_addr(listener->remote_ip, sizeof(listener->remote_ip), listener->remote_sa);
|
switch_get_addr(listener->remote_ip, sizeof(listener->remote_ip), remote_sa);
|
||||||
listener->remote_port = switch_sockaddr_get_port(listener->remote_sa);
|
listener->remote_port = switch_sockaddr_get_port(remote_sa);
|
||||||
|
|
||||||
switch_socket_addr_get(&listener->local_sa, SWITCH_FALSE, listener->sock);
|
switch_socket_addr_get(&local_sa, SWITCH_FALSE, listener->sock);
|
||||||
switch_get_addr(listener->local_ip, sizeof(listener->local_ip), listener->local_sa);
|
switch_get_addr(listener->local_ip, sizeof(listener->local_ip), local_sa);
|
||||||
listener->local_port = switch_sockaddr_get_port(listener->local_sa);
|
listener->local_port = switch_sockaddr_get_port(local_sa);
|
||||||
|
|
||||||
launch_listener_thread(listener);
|
launch_listener_thread(listener);
|
||||||
|
|
||||||
|
@ -132,28 +132,25 @@ typedef enum {
|
|||||||
|
|
||||||
#define SKINNY_MAX_LINES 42
|
#define SKINNY_MAX_LINES 42
|
||||||
struct listener {
|
struct listener {
|
||||||
skinny_profile_t *profile;
|
skinny_profile_t *profile;
|
||||||
char device_name[16];
|
char device_name[16];
|
||||||
uint32_t device_instance;
|
uint32_t device_instance;
|
||||||
uint32_t device_type;
|
uint32_t device_type;
|
||||||
|
|
||||||
char firmware_version[16];
|
char firmware_version[16];
|
||||||
char *soft_key_set_set;
|
char *soft_key_set_set;
|
||||||
|
|
||||||
switch_socket_t *sock;
|
switch_socket_t *sock;
|
||||||
switch_memory_pool_t *pool;
|
switch_memory_pool_t *pool;
|
||||||
switch_thread_rwlock_t *rwlock;
|
switch_thread_rwlock_t *rwlock;
|
||||||
switch_sockaddr_t *remote_sa;
|
char remote_ip[50];
|
||||||
char remote_ip[50];
|
switch_port_t remote_port;
|
||||||
switch_port_t remote_port;
|
char local_ip[50];
|
||||||
switch_sockaddr_t *local_sa;
|
switch_port_t local_port;
|
||||||
char local_ip[50];
|
switch_mutex_t *flag_mutex;
|
||||||
switch_port_t local_port;
|
uint32_t flags;
|
||||||
switch_mutex_t *flag_mutex;
|
time_t expire_time;
|
||||||
uint32_t flags;
|
struct listener *next;
|
||||||
uint32_t id;
|
|
||||||
time_t expire_time;
|
|
||||||
struct listener *next;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct listener listener_t;
|
typedef struct listener listener_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user