1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
	optimization.
This commit is contained in:
Ulrich Drepper
2003-06-03 05:46:37 +00:00
parent 63ae67a9d9
commit 7aebf8554c
2 changed files with 6 additions and 8 deletions

View File

@ -177,15 +177,10 @@ netlink_receive (struct netlink_handle *h)
nlm_next->size = read_len;
nlm_next->seq = h->seq;
if (h->nlm_list == NULL)
{
h->nlm_list = nlm_next;
h->end_ptr = nlm_next;
}
h->nlm_list = nlm_next;
else
{
h->end_ptr->next = nlm_next;
h->end_ptr = nlm_next;
}
h->end_ptr->next = nlm_next;
h->end_ptr = nlm_next;
for (nlmh = (struct nlmsghdr *) buf;
NLMSG_OK (nlmh, (size_t) read_len);