From b191a7790151bb6a5cd2fe7a1d40fe08185fccb8 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 24 Oct 2012 14:16:00 +0100 Subject: [PATCH] trivial indent fix. --- src/dhcp-common.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dhcp-common.c b/src/dhcp-common.c index 269f481..75076d4 100644 --- a/src/dhcp-common.c +++ b/src/dhcp-common.c @@ -420,7 +420,7 @@ void bindtodevice(int fd) SO_BINDTODEVICE is only available Linux. */ struct irec *iface, *found; - + for (found = NULL, iface = daemon->interfaces; iface; iface = iface->next) if (iface->dhcp_ok) { @@ -435,14 +435,14 @@ void bindtodevice(int fd) } if (found) - { - struct ifreq ifr; - strcpy(ifr.ifr_name, found->name); - /* only allowed by root. */ - if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, (void *)&ifr, sizeof(ifr)) == -1 && - errno != EPERM) - die(_("failed to set SO_BINDTODEVICE on DHCP socket: %s"), NULL, EC_BADNET); - } + { + struct ifreq ifr; + strcpy(ifr.ifr_name, found->name); + /* only allowed by root. */ + if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, (void *)&ifr, sizeof(ifr)) == -1 && + errno != EPERM) + die(_("failed to set SO_BINDTODEVICE on DHCP socket: %s"), NULL, EC_BADNET); + } } #endif