Commit 8cc9477d authored by Pavel Emelyanov's avatar Pavel Emelyanov

fd: Rename tmp to ret in open_fd

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 97dba0eb
...@@ -341,7 +341,7 @@ static int post_open_fd(int pid, FdinfoEntry *fe, struct file_desc *d) ...@@ -341,7 +341,7 @@ static int post_open_fd(int pid, FdinfoEntry *fe, struct file_desc *d)
static int open_fd(int pid, FdinfoEntry *fe, struct file_desc *d) static int open_fd(int pid, FdinfoEntry *fe, struct file_desc *d)
{ {
int tmp; int ret;
int sock; int sock;
struct fdinfo_list_entry *fle; struct fdinfo_list_entry *fle;
...@@ -349,11 +349,11 @@ static int open_fd(int pid, FdinfoEntry *fe, struct file_desc *d) ...@@ -349,11 +349,11 @@ static int open_fd(int pid, FdinfoEntry *fe, struct file_desc *d)
if ((fle->pid != pid) || (fe->fd != fle->fe->fd)) if ((fle->pid != pid) || (fe->fd != fle->fe->fd))
return 0; return 0;
tmp = d->ops->open(d); ret = d->ops->open(d);
if (tmp < 0) if (ret < 0)
return -1; return -1;
if (reopen_fd_as(fe->fd, tmp)) if (reopen_fd_as(fe->fd, ret))
return -1; return -1;
fcntl(fe->fd, F_SETFD, fe->flags); fcntl(fe->fd, F_SETFD, fe->flags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment