mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 00:35:23 +00:00
style: Enforce kernel style -Wdeclaration-after-statement
Include warnings that the kernel uses during compilation: -Wdeclaration-after-statement: enforces having variables declared at the top of scopes Signed-off-by: Nicolas Viennot <Nicolas.Viennot@twosigma.com> [Generated a commit message from the pull request] Signed-off-by: Dmitry Safonov <dima@arista.com>
This commit is contained in:
committed by
Andrei Vagin
parent
79559bef92
commit
8bb3c17a0f
@@ -30,10 +30,11 @@ void create_check_pattern(char *buf, size_t count, unsigned char seed)
|
||||
|
||||
struct fiemap *read_fiemap(int fd)
|
||||
{
|
||||
test_msg("Obtaining fiemap for fd %d\n", fd);
|
||||
struct fiemap *fiemap, *tmp;
|
||||
int extents_size;
|
||||
|
||||
test_msg("Obtaining fiemap for fd %d\n", fd);
|
||||
|
||||
fiemap = malloc(sizeof(struct fiemap));
|
||||
if (fiemap == NULL) {
|
||||
pr_perror("Cannot allocate fiemap");
|
||||
|
Reference in New Issue
Block a user