From 6840bcc4d4990d1b97aa071735bdce69e9fa7ffd Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 9 Dec 2011 15:39:08 +0400 Subject: [PATCH] restore: Move struct pipe_list_entry at top of file Stage structures in one place. Signed-off-by: Cyrill Gorcunov --- cr-restore.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cr-restore.c b/cr-restore.c index d9d2a1bc0..7f206451a 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -80,6 +80,12 @@ struct shmem_id { unsigned long shmid; }; +struct pipe_list_entry { + struct list_head list; + struct pipe_entry e; + off_t offset; +}; + static struct shmem_id *shmem_ids; static struct fmap_fd *fmap_fds; @@ -1156,13 +1162,6 @@ err: return ret; } - -struct pipe_list_entry { - struct pipe_entry e; - struct list_head list; - off_t offset; -}; - static int prepare_pipes(int pid) { u32 type = 0, ret = 1;