changeset 7236:c05b41ab8e3b

* isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid shadowing the parameter.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 31 Aug 2006 04:52:03 +0000
parents 3dbbe645b976
children 119870bc83d7
files lib/ChangeLog lib/isapipe.c
diffstat 2 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-30  Jim Meyering  <jim@meyering.net>
+
+	* isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid shadowing
+	the parameter.
+
 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* isapipe.c, isapipe.h: New files.
--- a/lib/isapipe.c
+++ b/lib/isapipe.c
@@ -71,17 +71,17 @@
 	 && PIPE_LINK_COUNT_MAX != (nlink_t) -1)
       && (S_ISFIFO (st.st_mode) | S_ISSOCK (st.st_mode)))
     {
-      int fd[2];
-      int pipe_result = pipe (fd);
+      int fd_pair[2];
+      int pipe_result = pipe (fd_pair);
       if (pipe_result != 0)
 	return pipe_result;
       else
 	{
 	  struct stat pipe_st;
-	  int fstat_pipe_result = fstat (fd[0], &pipe_st);
+	  int fstat_pipe_result = fstat (fd_pair[0], &pipe_st);
 	  int fstat_pipe_errno = errno;
-	  close (fd[0]);
-	  close (fd[1]);
+	  close (fd_pair[0]);
+	  close (fd_pair[1]);
 	  if (fstat_pipe_result != 0)
 	    {
 	      errno = fstat_pipe_errno;