Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
	optimization.
  • Loading branch information
Ulrich Drepper committed Jun 3, 2003
1 parent 63ae67a commit 7aebf85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2003-06-02 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
optimization.

* po/zh_CN.po: Update from translation team.

* posix/getconf.c (main): Also recognize names without the
Expand Down
11 changes: 3 additions & 8 deletions sysdeps/unix/sysv/linux/ifaddrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7aebf85

Please sign in to comment.