summaryrefslogtreecommitdiff
path: root/src/platform/nmp-netns.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-28 14:50:01 +0200
committerAntonio Cardace <acardace@redhat.com>2020-09-28 16:07:52 +0200
commit740b092fda3d5f45102422f22884c88ea6c42858 (patch)
tree5a049cc10c99efb5ee39606b8b1d0893a9f46db3 /src/platform/nmp-netns.c
parent328fb90f3e0d4e35975aff63944ac0412d7893a5 (diff)
downloadNetworkManager-ac/clang-format.tar.gz
format: replace tabs for indentation in code commentsac/clang-format
sed -i \ -e 's/^'$'\t'' \*/ */g' \ -e 's/^'$'\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t\t\t'' \*/ */g' \ $(git ls-files -- '*.[hc]')
Diffstat (limited to 'src/platform/nmp-netns.c')
-rw-r--r--src/platform/nmp-netns.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/platform/nmp-netns.c b/src/platform/nmp-netns.c
index 977211fd10..134be51502 100644
--- a/src/platform/nmp-netns.c
+++ b/src/platform/nmp-netns.c
@@ -157,7 +157,7 @@ _netns_stack_get_impl(void)
_netns_stack = s;
/* at the bottom of the stack we must try to create a netns instance
- * that we never pop. It's the base to which we need to return. */
+ * that we never pop. It's the base to which we need to return. */
netns = _netns_new(&error);
if (!netns) {
_LOGE(NULL, "failed to create initial netns: %s", error->message);
@@ -168,8 +168,8 @@ _netns_stack_get_impl(void)
_stack_push(s, netns, _CLONE_NS_ALL);
/* finally, register a destructor function to cleanup the array. If we fail
- * to do so, we will leak NMPNetns instances (and their file descriptor) when the
- * thread exits. */
+ * to do so, we will leak NMPNetns instances (and their file descriptor) when the
+ * thread exits. */
if (pthread_key_create(&key, (void (*)(void *)) g_array_unref) != 0)
_LOGE(NULL, "failure to initialize thread-local storage");
else if (pthread_setspecific(key, s) != 0)
@@ -197,7 +197,7 @@ _stack_current_netns(GArray *netns_stack, int ns_types)
nm_assert(netns_stack && netns_stack->len > 0);
/* we search the stack top-down to find the netns that has
- * all @ns_types set. */
+ * all @ns_types set. */
for (j = netns_stack->len; ns_types && j >= 1;) {
NetnsInfo *info;
@@ -221,7 +221,7 @@ _stack_current_ns_types(GArray *netns_stack, NMPNetns *netns, int ns_types)
nm_assert(netns_stack && netns_stack->len > 0);
/* we search the stack top-down to check which of @ns_types
- * are already set to @netns. */
+ * are already set to @netns. */
for (j = netns_stack->len; ns_types && j >= 1;) {
NetnsInfo *info;
@@ -508,7 +508,7 @@ nmp_netns_new(void)
if (!_stack_peek(netns_stack)) {
/* there are no netns instances. We cannot create a new one
- * (because after unshare we couldn't return to the original one). */
+ * (because after unshare we couldn't return to the original one). */
errno = ENOTSUP;
return NULL;
}