summaryrefslogtreecommitdiffstats
path: root/netlink-notify.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-04 17:56:12 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-04 17:56:12 +0200
commitdabd6aa38d39c78144856543809cb32d1da0dbbf (patch)
treed69ea919e14f5670098ddd51b4f3854db5bfd526 /netlink-notify.c
parent31f5e14e7c79587ce400866dd236732a84b9764e (diff)
downloadnetlink-notify-dabd6aa38d39c78144856543809cb32d1da0dbbf.tar.gz
netlink-notify-dabd6aa38d39c78144856543809cb32d1da0dbbf.tar.zst
remove trailing whitespaces
Diffstat (limited to 'netlink-notify.c')
-rw-r--r--netlink-notify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/netlink-notify.c b/netlink-notify.c
index b8eddc1..27f9986 100644
--- a/netlink-notify.c
+++ b/netlink-notify.c
@@ -272,7 +272,7 @@ static int msg_handler (struct sockaddr_nl *nl, struct nlmsghdr *msg) {
case RTM_NEWADDR:
rth = IFA_RTA (ifa);
rtl = IFA_PAYLOAD (msg);
-
+
while (rtl && RTA_OK (rth, rtl)) {
if ((rth->rta_type == IFA_LOCAL /* IPv4 */
|| rth->rta_type == IFA_ADDRESS /* IPv6 */)
@@ -308,7 +308,7 @@ static int msg_handler (struct sockaddr_nl *nl, struct nlmsghdr *msg) {
case RTM_DELADDR:
rth = IFA_RTA (ifa);
rtl = IFA_PAYLOAD (msg);
-
+
while (rtl && RTA_OK (rth, rtl)) {
if ((rth->rta_type == IFA_LOCAL /* IPv4 */
|| rth->rta_type == IFA_ADDRESS /* IPv6 */)
@@ -329,7 +329,7 @@ static int msg_handler (struct sockaddr_nl *nl, struct nlmsghdr *msg) {
return 0;
case RTM_NEWLINK:
notifystr = newstr_link(TEXT_NEWLINK, name[ifi->ifi_index], ifi->ifi_flags);
-
+
/* free only if interface goes down */
if (!(ifi->ifi_flags & CHECK_CONNECTED))
free_chain(&addresses_seen[ifi->ifi_index]);
@@ -403,7 +403,7 @@ int main (int argc, char **argv) {
printf ("%s: %s v%s (compiled: " __DATE__ ", " __TIME__
#if DEBUG
", with debug output"
-#endif
+#endif
")\n", argv[0], PROGNAME, VERSION);
nls = open_netlink ();