[CRIU] [PATCH 1/3] files: Remove unused fd arg from open_fe_fd

Pavel Emelyanov xemul at parallels.com
Tue Mar 27 04:45:01 EDT 2012


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>

---

diff --git a/files.c b/files.c
index 1c6fc11..2ee020e 100644
--- a/files.c
+++ b/files.c
@@ -148,7 +148,7 @@ int prepare_fd_pid(int pid)
 	return ret;
 }
 
-static int open_fe_fd(struct fdinfo_entry *fe, int fd)
+static int open_fe_fd(struct fdinfo_entry *fe)
 {
 	struct reg_file_entry rfe;
 	char path[PATH_MAX];
@@ -201,7 +201,7 @@ static int restore_cwd(struct fdinfo_entry *fe, int fd)
 {
 	int cfd;
 
-	cfd = open_fe_fd(fe, fd);
+	cfd = open_fe_fd(fe);
 	if (cfd < 0)
 		return cfd;
 
@@ -230,7 +230,7 @@ static int restore_exe_early(struct fdinfo_entry *fe, int fd)
 	if (self_exe_fd < 0)
 		return self_exe_fd;
 
-	tmp = open_fe_fd(fe, fd);
+	tmp = open_fe_fd(fe);
 	if (tmp < 0)
 		return tmp;
 
@@ -312,7 +312,7 @@ static int open_fd(int pid, struct fdinfo_entry *fe,
 	if ((fi->pid != pid) || (fe->addr != fi->addr))
 		return 0;
 
-	tmp = open_fe_fd(fe, fdinfo_fd);
+	tmp = open_fe_fd(fe);
 	if (tmp < 0)
 		return -1;
 
@@ -394,7 +394,7 @@ static int open_fmap(int pid, struct fdinfo_entry *fe, int fd)
 	struct fmap_fd *new;
 	int tmp;
 
-	tmp = open_fe_fd(fe, fd);
+	tmp = open_fe_fd(fe);
 	if (tmp < 0)
 		return -1;
 


More information about the CRIU mailing list