summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_clone.c
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2024-01-16 15:37:07 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2024-01-16 15:37:07 +0000
commita1e00b4e28d56365b4b5cc4aa44185c4b53f5c33 (patch)
treed733e3560e2734d7bfdd4c92df6ad3736e3a1e0b /src/nxt_clone.c
parent5a8337933df1cf3aba967d86549e236dd9173386 (diff)
downloadunit-a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33.tar.gz
unit-a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33.tar.bz2
White space formatting fixes
Closes: <https://github.com/nginx/unit/pull/1062>
Diffstat (limited to 'src/nxt_clone.c')
-rw-r--r--src/nxt_clone.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nxt_clone.c b/src/nxt_clone.c
index 1cd70f6c..305f4261 100644
--- a/src/nxt_clone.c
+++ b/src/nxt_clone.c
@@ -152,7 +152,7 @@ nxt_clone_credential_map_set(nxt_task_t *task, const char* mapfile, pid_t pid,
return NXT_ERROR;
}
- if (i+1 < map->size) {
+ if (i + 1 < map->size) {
*p++ = '\n';
} else {
@@ -382,13 +382,13 @@ nxt_clone_vldt_credential_gidmap(nxt_task_t *task,
m = map->map[j];
if (!base_ok && creds->base_gid >= (nxt_gid_t) m.container
- && creds->base_gid < (nxt_gid_t) (m.container+m.size))
+ && creds->base_gid < (nxt_gid_t) (m.container + m.size))
{
base_ok = 1;
}
if (creds->gids[i] >= (nxt_gid_t) m.container
- && creds->gids[i] < (nxt_gid_t) (m.container+m.size))
+ && creds->gids[i] < (nxt_gid_t) (m.container + m.size))
{
gid_ok = 1;
break;
@@ -405,7 +405,7 @@ nxt_clone_vldt_credential_gidmap(nxt_task_t *task,
m = map->map[i];
if (creds->base_gid >= (nxt_gid_t) m.container
- && creds->base_gid < (nxt_gid_t) (m.container+m.size))
+ && creds->base_gid < (nxt_gid_t) (m.container + m.size))
{
base_ok = 1;
break;