aboutsummaryrefslogtreecommitdiffstats
path: root/man7/user_namespaces.7
diff options
context:
space:
mode:
Diffstat (limited to 'man7/user_namespaces.7')
-rw-r--r--man7/user_namespaces.74
1 files changed, 2 insertions, 2 deletions
diff --git a/man7/user_namespaces.7 b/man7/user_namespaces.7
index 954a508871..2e3db5fbfd 100644
--- a/man7/user_namespaces.7
+++ b/man7/user_namespaces.7
@@ -1149,13 +1149,13 @@ usage(char *pname)
static void
update_map(char *mapping, char *map_file)
{
- int fd, j;
+ int fd;
size_t map_len; /* Length of \(aqmapping\(aq */
/* Replace commas in mapping string with newlines */
map_len = strlen(mapping);
- for (j = 0; j < map_len; j++)
+ for (int j = 0; j < map_len; j++)
if (mapping[j] == \(aq,\(aq)
mapping[j] = \(aq\en\(aq;