Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 43842ef

Browse files
committed
reformat with indent -linux
Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <[email protected]> (github: dqminh)
1 parent 4940cee commit 43842ef

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

namespaces/nsenter/nsenter.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void get_args(int *argc, char ***argv)
3232
contents_size += kBufSize;
3333
contents = (char *)realloc(contents, contents_size);
3434
bytes_read =
35-
read(fd, contents + contents_offset,
36-
contents_size - contents_offset);
35+
read(fd, contents + contents_offset,
36+
contents_size - contents_offset);
3737
contents_offset += bytes_read;
3838
}
3939
while (bytes_read > 0);
@@ -90,16 +90,17 @@ void nsenter()
9090
}
9191

9292
if (prctl(PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0) == -1) {
93-
fprintf(stderr, "nsenter: failed to set child subreaper: %s", strerror(errno));
94-
exit(1);
95-
}
93+
fprintf(stderr, "nsenter: failed to set child subreaper: %s",
94+
strerror(errno));
95+
exit(1);
96+
}
9697

9798
static const struct option longopts[] = {
9899
{"nspid", required_argument, NULL, 'n'},
99100
{"console", required_argument, NULL, 't'},
100101
{NULL, 0, NULL, 0}
101102
};
102-
103+
103104
pid_t init_pid = -1;
104105
char *init_pid_str = NULL;
105106
char *console = NULL;

0 commit comments

Comments
 (0)