mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 08:11:05 -08:00
(relocate_fd): Avoid min'/max' as variable names.
This commit is contained in:
parent
ceafe86b40
commit
a3833dfef0
1 changed files with 5 additions and 5 deletions
|
|
@ -1128,13 +1128,13 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
|
|||
#endif /* not MSDOS */
|
||||
}
|
||||
|
||||
/* Move the file descriptor FD so that its number is not less than MIN.
|
||||
/* Move the file descriptor FD so that its number is not less than MINFD.
|
||||
If the file descriptor is moved at all, the original is freed. */
|
||||
int
|
||||
relocate_fd (fd, min)
|
||||
int fd, min;
|
||||
relocate_fd (fd, minfd)
|
||||
int fd, minfd;
|
||||
{
|
||||
if (fd >= min)
|
||||
if (fd >= minfd)
|
||||
return fd;
|
||||
else
|
||||
{
|
||||
|
|
@ -1151,7 +1151,7 @@ relocate_fd (fd, min)
|
|||
}
|
||||
/* Note that we hold the original FD open while we recurse,
|
||||
to guarantee we'll get a new FD if we need it. */
|
||||
new = relocate_fd (new, min);
|
||||
new = relocate_fd (new, minfd);
|
||||
close (fd);
|
||||
return new;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue