Skip to content

Commit cf6f4f6

Browse files
committed
make indent
1 parent bc30a1a commit cf6f4f6

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

macros.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#define ARR_SZ(array) (sizeof(array) / sizeof(*array))
3939
#endif /* !defined(ARR_SZ) */
4040

41-
#define NS_VALSTR_STRUCT(x) \
42-
{ (uint64_t) x, #x }
41+
#define NS_VALSTR_STRUCT(x) {(uint64_t)x, #x}
4342

4443
#endif /* NS_COMMON_H */

mnt.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,7 @@ bool initNs(nsjconf_t* nsjconf) {
521521
}
522522

523523
int status;
524-
while (wait4(pid, &status, 0, NULL) != pid)
525-
;
524+
while (wait4(pid, &status, 0, NULL) != pid);
526525
if (WIFEXITED(status) && WEXITSTATUS(status) == 0) {
527526
return true;
528527
}

subproc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static void newProc(nsjconf_t* nsjconf, int netfd, int fd_in, int fd_out, int fd
219219

220220
if (nsjconf->use_execveat) {
221221
#if defined(__NR_execveat)
222-
util::syscall(__NR_execveat, nsjconf->exec_fd, (uintptr_t) "",
222+
util::syscall(__NR_execveat, nsjconf->exec_fd, (uintptr_t)"",
223223
(uintptr_t)argv.data(), (uintptr_t)environ, AT_EMPTY_PATH);
224224
#else /* defined(__NR_execveat) */
225225
LOG_E("Your system doesn't support execveat() syscall");

util.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,12 @@ long syscall(long sysno, uintptr_t a0, uintptr_t a1, uintptr_t a2, uintptr_t a3,
409409
}
410410

411411
long setrlimit(int res, const struct rlimit64& newlim) {
412-
return util::syscall(__NR_prlimit64, 0, res, (uintptr_t)&newlim, (uintptr_t) nullptr);
412+
return util::syscall(__NR_prlimit64, 0, res, (uintptr_t)&newlim, (uintptr_t)nullptr);
413413
}
414414

415415
long getrlimit(int res, struct rlimit64* curlim) {
416416
*curlim = {};
417-
return util::syscall(__NR_prlimit64, 0, res, (uintptr_t) nullptr, (uintptr_t)curlim);
417+
return util::syscall(__NR_prlimit64, 0, res, (uintptr_t)nullptr, (uintptr_t)curlim);
418418
}
419419

420420
} // namespace util

0 commit comments

Comments
 (0)