chiark / gitweb /
nss-myhostname: use _cleanup_ and split function into two
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 30 Mar 2013 14:46:04 +0000 (10:46 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 31 Mar 2013 18:32:32 +0000 (14:32 -0400)
commitd73c3269cd3c92bb26f5e161516c587f2874c8c5
treeac182dea6d730cb835bfad06d12d41fd3186d684
parent7a2262061252a33f6f0a009e89556fbee5b0cb41
nss-myhostname: use _cleanup_ and split function into two

The triply nested loop is just too much. Let's split out the
middle loop's body, so the whole thing is easier to read. Also
modernize the style a bit, using structure initialization to
avoid memset and such.
src/nss-myhostname/netlink.c