diff options
author | Thomas Haller <thaller@redhat.com> | 2016-01-04 18:08:04 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-01-04 18:08:04 +0100 |
commit | 7102cde1ffcaf78852aee8f8c0619b38f8571118 (patch) | |
tree | 2cdfae3ad94de13b3d5118ae51db91f722facb13 | |
parent | 986cf3a88733a694a566e4bed6becd6afbe8624e (diff) | |
download | NetworkManager-7102cde1ffcaf78852aee8f8c0619b38f8571118.tar.gz |
platform/trivial: remove extra indention in constructed()
-rw-r--r-- | src/platform/nm-linux-platform.c | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 01035b73d7..73219f1d2f 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -5903,36 +5903,34 @@ constructed (GObject *_object) _LOGD ("create"); - { - priv->nlh = nl_socket_alloc (); - g_assert (priv->nlh); - - nle = nl_connect (priv->nlh, NETLINK_ROUTE); - g_assert (!nle); - nle = nl_socket_set_passcred (priv->nlh, 1); - g_assert (!nle); - - /* No blocking for event socket, so that we can drain it safely. */ - nle = nl_socket_set_nonblocking (priv->nlh); - g_assert (!nle); - - /* The default buffer size wasn't enough for the testsuites. It might just - * as well happen with NetworkManager itself. For now let's hope 128KB is - * good enough. - * - * FIXME: it's unclear that this is still actually needed. The testsuite - * certainly doesn't fail for me. Maybe it can be removed. - */ - nle = nl_socket_set_buffer_size (priv->nlh, 131072, 0); - g_assert (!nle); - - nle = nl_socket_add_memberships (priv->nlh, - RTNLGRP_LINK, - RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV6_IFADDR, - RTNLGRP_IPV4_ROUTE, RTNLGRP_IPV6_ROUTE, - 0); - g_assert (!nle); - } + priv->nlh = nl_socket_alloc (); + g_assert (priv->nlh); + + nle = nl_connect (priv->nlh, NETLINK_ROUTE); + g_assert (!nle); + nle = nl_socket_set_passcred (priv->nlh, 1); + g_assert (!nle); + + /* No blocking for event socket, so that we can drain it safely. */ + nle = nl_socket_set_nonblocking (priv->nlh); + g_assert (!nle); + + /* The default buffer size wasn't enough for the testsuites. It might just + * as well happen with NetworkManager itself. For now let's hope 128KB is + * good enough. + * + * FIXME: it's unclear that this is still actually needed. The testsuite + * certainly doesn't fail for me. Maybe it can be removed. + */ + nle = nl_socket_set_buffer_size (priv->nlh, 131072, 0); + g_assert (!nle); + + nle = nl_socket_add_memberships (priv->nlh, + RTNLGRP_LINK, + RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV6_IFADDR, + RTNLGRP_IPV4_ROUTE, RTNLGRP_IPV6_ROUTE, + 0); + g_assert (!nle); _LOGD ("Netlink socket for events established: port=%u, fd=%d", nl_socket_get_local_port (priv->nlh), nl_socket_get_fd (priv->nlh)); priv->event_channel = g_io_channel_unix_new (nl_socket_get_fd (priv->nlh)); |