Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed May 19, 2020
1 parent 3d1cebd commit f3a3df4
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 18 deletions.
2 changes: 0 additions & 2 deletions src/modules/proto_arp/proto_arp_ethernet.c
Expand Up @@ -175,7 +175,6 @@ static int mod_open(fr_listen_t *li)
proto_arp_ethernet_t const *inst = talloc_get_type_abort_const(li->app_io_instance, proto_arp_ethernet_t);
proto_arp_ethernet_thread_t *thread = talloc_get_type_abort(li->thread_instance, proto_arp_ethernet_thread_t);

CONF_SECTION *server_cs;
CONF_ITEM *ci;
char const *filter;
char *our_filter = NULL;
Expand Down Expand Up @@ -211,7 +210,6 @@ static int mod_open(fr_listen_t *li)

ci = cf_parent(inst->cs); /* listen { ... } */
fr_assert(ci != NULL);
server_cs = cf_item_to_section(ci);

thread->name = talloc_asprintf(thread, "arp on interface %s", inst->interface);
return 0;
Expand Down
3 changes: 0 additions & 3 deletions src/modules/proto_control/proto_control_tcp.c
Expand Up @@ -207,7 +207,6 @@ static int mod_open(fr_listen_t *li)

int sockfd;
uint16_t port = inst->port;
CONF_SECTION *server_cs;
CONF_ITEM *ci;

fr_assert(!inst->connection);
Expand Down Expand Up @@ -238,8 +237,6 @@ static int mod_open(fr_listen_t *li)
ci = cf_parent(ci);
fr_assert(ci != NULL);

server_cs = cf_item_to_section(ci);

inst->name = fr_app_io_socket_name(inst, &proto_control_tcp,
NULL, 0,
&inst->ipaddr, inst->port);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/proto_control/proto_control_unix.c
Expand Up @@ -975,7 +975,7 @@ static int mod_open(fr_listen_t *li)
thread->radclient.ipaddr.af = AF_INET;
thread->radclient.src_ipaddr.af = AF_INET;

thread->radclient.server_cs = cf_item_to_section(cf_parent(cf_parent(inst->cs)));
thread->radclient.server_cs = server_cs;
fr_assert(thread->radclient.server_cs != NULL);
thread->radclient.server = cf_section_name2(thread->radclient.server_cs);

Expand Down
3 changes: 0 additions & 3 deletions src/modules/proto_dhcpv6/proto_dhcpv6_udp.c
Expand Up @@ -300,7 +300,6 @@ static int mod_open(fr_listen_t *li)

int sockfd, rcode;
uint16_t port = inst->port;
CONF_SECTION *server_cs;
CONF_ITEM *ci;

li->fd = sockfd = fr_socket_server_udp(&inst->ipaddr, &port, inst->port_name, true);
Expand Down Expand Up @@ -390,8 +389,6 @@ static int mod_open(fr_listen_t *li)
ci = cf_parent(ci);
fr_assert(ci != NULL);

server_cs = cf_item_to_section(ci);

thread->name = fr_app_io_socket_name(thread, &proto_dhcpv6_udp,
NULL, 0,
&inst->ipaddr, inst->port,
Expand Down
3 changes: 0 additions & 3 deletions src/modules/proto_radius/proto_radius_tcp.c
Expand Up @@ -290,7 +290,6 @@ static int mod_open(fr_listen_t *li)

int sockfd;
uint16_t port = inst->port;
CONF_SECTION *server_cs;
CONF_ITEM *ci;

fr_assert(!thread->connection);
Expand Down Expand Up @@ -321,8 +320,6 @@ static int mod_open(fr_listen_t *li)
ci = cf_parent(ci);
fr_assert(ci != NULL);

server_cs = cf_item_to_section(ci);

thread->name = fr_app_io_socket_name(thread, &proto_radius_tcp,
NULL, 0,
&inst->ipaddr, inst->port,
Expand Down
3 changes: 0 additions & 3 deletions src/modules/proto_radius/proto_radius_udp.c
Expand Up @@ -299,7 +299,6 @@ static int mod_open(fr_listen_t *li)

int sockfd;
uint16_t port = inst->port;
CONF_SECTION *server_cs;
CONF_ITEM *ci;

li->fd = sockfd = fr_socket_server_udp(&inst->ipaddr, &port, inst->port_name, true);
Expand Down Expand Up @@ -359,8 +358,6 @@ static int mod_open(fr_listen_t *li)
ci = cf_parent(ci);
fr_assert(ci != NULL);

server_cs = cf_item_to_section(ci);

thread->name = fr_app_io_socket_name(thread, &proto_radius_udp,
NULL, 0,
&inst->ipaddr, inst->port,
Expand Down
3 changes: 0 additions & 3 deletions src/modules/proto_vmps/proto_vmps_udp.c
Expand Up @@ -305,7 +305,6 @@ static int mod_open(fr_listen_t *li)

int sockfd;
uint16_t port = inst->port;
CONF_SECTION *server_cs;
CONF_ITEM *ci;

li->fd = sockfd = fr_socket_server_udp(&inst->ipaddr, &port, inst->port_name, true);
Expand Down Expand Up @@ -343,8 +342,6 @@ static int mod_open(fr_listen_t *li)
ci = cf_parent(ci);
fr_assert(ci != NULL);

server_cs = cf_item_to_section(ci);

thread->name = fr_app_io_socket_name(thread, &proto_vmps_udp,
NULL, 0,
&inst->ipaddr, inst->port,
Expand Down

0 comments on commit f3a3df4

Please sign in to comment.