summaryrefslogtreecommitdiff
path: root/system-linux.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-01-31 09:30:27 +0100
committerHans Dedecker <dedeckeh@gmail.com>2017-01-31 09:37:27 +0100
commit7cc2f10824fb0f7a519a30a77ed75439aab2b6ff (patch)
tree5262d152307189f275f55a768ab40db9966f8f32 /system-linux.c
parent650758b16e5185505a3fbc1307949340af70b611 (diff)
downloadnetifd-7cc2f10824fb0f7a519a30a77ed75439aab2b6ff.tar.gz
treewide: fix white space errors
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/system-linux.c b/system-linux.c
index fcd1b2e..8a1173c 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -139,7 +139,7 @@ create_socket(int protocol, int groups)
static bool
create_raw_event_socket(struct event_socket *ev, int protocol, int groups,
- uloop_fd_handler cb, int flags)
+ uloop_fd_handler cb, int flags)
{
ev->sock = create_socket(protocol, groups);
if (!ev->sock)
@@ -243,7 +243,7 @@ int system_init(void)
return -1;
if (!create_raw_event_socket(&hotplug_event, NETLINK_KOBJECT_UEVENT, 1,
- handle_hotplug_event, 0))
+ handle_hotplug_event, 0))
return -1;
// Receive network link events form kernel
@@ -1176,10 +1176,10 @@ int system_vlandev_add(struct device *vlandev, struct device *dev, struct vlande
nlmsg_append(msg, &iim, sizeof(iim), 0);
nla_put_string(msg, IFLA_IFNAME, vlandev->ifname);
nla_put_u32(msg, IFLA_LINK, dev->ifindex);
-
+
if (!(linkinfo = nla_nest_start(msg, IFLA_LINKINFO)))
goto nla_put_failure;
-
+
nla_put_string(msg, IFLA_INFO_KIND, "vlan");
if (!(data = nla_nest_start(msg, IFLA_INFO_DATA)))
@@ -2231,7 +2231,7 @@ static int system_add_gre_tunnel(const char *name, const char *kind,
else
tos = 1;
}
- }
+ }
if ((cur = tb[TUNNEL_ATTR_INFO]) && (blobmsg_type(cur) == BLOBMSG_TYPE_STRING)) {
uint8_t icsum, ocsum, iseqno, oseqno;
@@ -2464,7 +2464,7 @@ static int system_add_proto_tunnel(const char *name, const uint8_t proto, const
struct blob_attr *cur;
bool set_df = true;
struct ip_tunnel_parm p = {
- .link = link,
+ .link = link,
.iph = {
.version = 4,
.ihl = 5,