mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
CLEANUP: dns: Removing usless variable & assignation
In dns_send_query(), ret was set to 0 but always reassigned before the usage so this initialisation was useless. The send_error variable was created, assigned to 0 but never used. So this variable is just useless by itself. Removing it.
This commit is contained in:
parent
f714fb533e
commit
5457eb49b4
1 changed files with 1 additions and 2 deletions
|
|
@ -280,11 +280,10 @@ int dns_send_query(struct dns_resolution *resolution)
|
|||
{
|
||||
struct dns_resolvers *resolvers;
|
||||
struct dns_nameserver *nameserver;
|
||||
int ret, send_error, bufsize, fd;
|
||||
int ret, bufsize, fd;
|
||||
|
||||
resolvers = resolution->resolvers;
|
||||
|
||||
ret = send_error = 0;
|
||||
bufsize = dns_build_query(resolution->query_id, resolution->query_type, resolution->hostname_dn,
|
||||
resolution->hostname_dn_len, trash.str, trash.size);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue