summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1998-04-09 17:47:17 +0000
committerKarl Heuer <kwzh@gnu.org>1998-04-09 17:47:17 +0000
commita3833dfef0e8f659ad74f00aab1e8a8bfe2941f9 (patch)
tree830362ac211e1b6953460d26daa08ab7869fa1a6 /src/callproc.c
parentceafe86b40fd5ad9a91a15b2f12fcaf7f03bd41d (diff)
downloademacs-a3833dfef0e8f659ad74f00aab1e8a8bfe2941f9.tar.gz
(relocate_fd): Avoid `min'/`max' as variable names.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 2bb18b3bf4c..bc02c633fec 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -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;
}