mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-26 21:31:01 +01: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
@ -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…
x
Reference in New Issue
Block a user