diff --git a/memalloc.c b/memalloc.c index 85c8d34..c02da5b 100644 --- a/memalloc.c +++ b/memalloc.c @@ -68,7 +68,7 @@ int init_memalloc(size_t aux, size_t pool) { void *mem; unsigned long addr; - size_t size, slots_size; + size_t slots_size; slots_size = round_up_page_size(aux); pool_size = round_up_page_size(pool); diff --git a/resume.c b/resume.c index bdb9e3a..5fedb15 100644 --- a/resume.c +++ b/resume.c @@ -258,8 +258,7 @@ static void reboot_question(char *message) static int read_image(int dev, int fd, loff_t start) { struct image_header_info *header; - int ret, error; - char c; + int error; header = getmem(page_size); diff --git a/suspend.c b/suspend.c index bca96eb..166a62f 100644 --- a/suspend.c +++ b/suspend.c @@ -1476,7 +1476,7 @@ static int write_image(int snapshot_fd, int resume_fd, int test_fd) /* We have already read one page */ nr_pages--; } - printf("%s: Image size: %lu kilobytes\n", my_name, image_size / 1024); + printf("%s: Image size: %lu kilobytes\n", my_name, (unsigned long) image_size / 1024); real_size = image_size; handle.swap_needed = image_size;