mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
dns_enqueue(): minor readability improvement: add local variable "age" to store result of subtraction
This commit is contained in:
parent
68ec20fffc
commit
03a9aac157
@ -1244,8 +1244,9 @@ dns_enqueue(const char *name, size_t hostnamelen, dns_found_callback found,
|
||||
}
|
||||
/* check if this is the oldest completed entry */
|
||||
if (entry->state == DNS_STATE_DONE) {
|
||||
if ((u8_t)(dns_seqno - entry->seqno) > lseq) {
|
||||
lseq = dns_seqno - entry->seqno;
|
||||
u8_t age = dns_seqno - entry->seqno;
|
||||
if (age > lseq) {
|
||||
lseq = age;
|
||||
lseqi = i;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user