mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
pie: Formatting and typo fixes
Also remove the cast of a pointer-to-void variable to the type it already is. Signed-off-by: Christopher Covington <cov@codeaurora.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
f377dade94
commit
bb9f7cffa9
@@ -510,7 +510,7 @@ static int __parasite_daemon_wait_msg(struct ctl_msg *m)
|
||||
{
|
||||
int ret;
|
||||
|
||||
pr_debug("Daemon wais for command\n");
|
||||
pr_debug("Daemon waits for command\n");
|
||||
|
||||
while (1) {
|
||||
*m = (struct ctl_msg){ };
|
||||
@@ -645,8 +645,8 @@ static noinline int unmap_itself(void *data)
|
||||
|
||||
sys_munmap(args->parasite_start, args->parasite_len);
|
||||
/*
|
||||
* sys_munmap never return back. The controll process must
|
||||
* trap us on the exit from munmap
|
||||
* This call to sys_munmap must never return. Instead, the controlling
|
||||
* process must trap us on the exit from munmap.
|
||||
*/
|
||||
|
||||
BUG();
|
||||
|
@@ -440,7 +440,7 @@ long __export_restore_thread(struct thread_restore_args *args)
|
||||
restore_pdeath_sig(args);
|
||||
|
||||
if (args->ta->seccomp_mode != SECCOMP_MODE_DISABLED)
|
||||
pr_info("restoring seccomp mode %d for %ld\n", args->ta->seccomp_mode, sys_getpid());
|
||||
pr_info("Restoring seccomp mode %d for %ld\n", args->ta->seccomp_mode, sys_getpid());
|
||||
|
||||
restore_finish_stage(CR_STATE_RESTORE_CREDS);
|
||||
futex_dec_and_wake(&thread_inprogress);
|
||||
@@ -742,7 +742,7 @@ static int unmap_old_vmas(void *premmapped_addr, unsigned long premmapped_len,
|
||||
void *p1, *p2;
|
||||
int ret;
|
||||
|
||||
if ((void *) premmapped_addr < bootstrap_start) {
|
||||
if (premmapped_addr < bootstrap_start) {
|
||||
p1 = premmapped_addr;
|
||||
s1 = premmapped_len;
|
||||
p2 = bootstrap_start;
|
||||
|
Reference in New Issue
Block a user