Skip to content

Commit 55498c1

Browse files
committed
criu: rename a variable
This is a preparation for the next commit. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 880b7ee commit 55498c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcrun/criu.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ libcrun_container_checkpoint_linux_criu (libcrun_container_status_t *status, lib
415415
cleanup_wrapper struct libcriu_wrapper_s *wrapper = NULL;
416416
cleanup_free char *descriptors_path = NULL;
417417
cleanup_free char *freezer_path = NULL;
418-
cleanup_free char *path = NULL;
418+
cleanup_free char *rootfs = NULL;
419419
cleanup_close int image_fd = -1;
420420
cleanup_close int work_fd = -1;
421421
int cgroup_mode;
@@ -554,13 +554,13 @@ libcrun_container_checkpoint_linux_criu (libcrun_container_status_t *status, lib
554554
if (UNLIKELY (ret < 0))
555555
return crun_error_wrap (err, "error saving CRIU descriptors file");
556556

557-
ret = append_paths (&path, err, status->bundle, status->rootfs, NULL);
557+
ret = append_paths (&rootfs, err, status->bundle, status->rootfs, NULL);
558558
if (UNLIKELY (ret < 0))
559559
return ret;
560560

561-
ret = libcriu_wrapper->criu_set_root (path);
561+
ret = libcriu_wrapper->criu_set_root (rootfs);
562562
if (UNLIKELY (ret != 0))
563-
return crun_make_error (err, 0, "error setting CRIU root to `%s`", path);
563+
return crun_make_error (err, 0, "error setting CRIU root to `%s`", rootfs);
564564

565565
cgroup_mode = libcrun_get_cgroup_mode (err);
566566
if (UNLIKELY (cgroup_mode < 0))

0 commit comments

Comments
 (0)