[CRIU] [PATCH 4/7] test: remove unused variables

Dmitry Safonov 0x7f454c46 at gmail.com
Mon Apr 29 17:52:08 MSK 2019


On Sun, 28 Apr 2019 at 19:45, Rikard Falkeborn
<rikard.falkeborn at gmail.com> wrote:
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>

Reviewed-by: Dmitry Safonov <0x7f454c46 at gmail.com>

> ---
>  test/others/bers/bers.c          | 4 +---
>  test/others/libcriu/test_errno.c | 2 +-
>  2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/test/others/bers/bers.c b/test/others/bers/bers.c
> index 208325c6..0954868f 100644
> --- a/test/others/bers/bers.c
> +++ b/test/others/bers/bers.c
> @@ -93,7 +93,6 @@ static int sys_gettid(void)
>  static void dirtify_memory(unsigned long *chunks, size_t nr_chunks,
>                            size_t chunk_size, int mode, const size_t nr_pages)
>  {
> -       void *page;
>         size_t i;
>
>         pr_trace("filling memory\n");
> @@ -115,7 +114,7 @@ static void dirtify_memory(unsigned long *chunks, size_t nr_chunks,
>  static void dirtify_files(int *fd, size_t nr_files, size_t size)
>  {
>         size_t buf[8192];
> -       size_t i, j, c;
> +       size_t i;
>
>         /*
>          * Note we don't write any _sane_ data here, the only
> @@ -265,7 +264,6 @@ int main(int argc, char *argv[])
>         char workdir[PATH_MAX];
>         int opt, idx, pidfd;
>         char pidbuf[32];
> -       int status;
>         pid_t pid;
>         size_t i;
>
> diff --git a/test/others/libcriu/test_errno.c b/test/others/libcriu/test_errno.c
> index e0914430..8bd19fe2 100644
> --- a/test/others/libcriu/test_errno.c
> +++ b/test/others/libcriu/test_errno.c
> @@ -56,7 +56,7 @@ static int no_process(void)
>         size_t len;
>         ssize_t count;
>         char *buf = NULL;
> -       int pid, fd, ret;
> +       int pid, ret;
>
>         printf("--- Try to dump unexisting process\n");
>
> --
> 2.21.0
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu



-- 
             Dmitry


More information about the CRIU mailing list