int main(int argc, char *argv[])
{
int exit_code = EXIT_SUCCESS, index = 0;
- int dfd, fd_tree, new_argc, ret;
+ int dfd, fd_tree, new_argc, ret, i;
char *base_dir;
char *const *new_argv;
char target[PATH_MAX];
* Having a mount table with 10000 mounts is already quite excessive
* and shoult account even for weird test systems.
*/
- for (size_t i = 0; i < 10000; i++) {
+ for (i = 0; i < 10000; i++) {
fd_tree = sys_open_tree(dfd, "detached-move-mount",
OPEN_TREE_CLONE |
OPEN_TREE_CLOEXEC |
static int parse_map(char *map)
{
char types[2] = {'u', 'g'};
- int ret;
+ int ret, i;
__u32 id_host, id_ns, range;
char which;
if (which != 'b' && which != 'u' && which != 'g')
return -1;
- for (int i = 0; i < 2; i++) {
+ for (i = 0; i < 2; i++) {
idmap_type_t map_type;
if (which != types[i] && which != 'b')
int fill, left;
char mapbuf[4096] = {};
bool had_entry = false;
+ idmap_type_t map_type, u_or_g;
- for (idmap_type_t map_type = ID_TYPE_UID, u_or_g = 'u';
+ for (map_type = ID_TYPE_UID, u_or_g = 'u';
map_type <= ID_TYPE_GID; map_type++, u_or_g = 'g') {
char *pos = mapbuf;
int ret;