summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-06-08 19:18:39 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-06-08 19:18:39 (GMT)
commit71d29f51af72942fd0ff29013cd77a59cddbcbca (patch)
tree830b85678ec45de2bd68f3df1eb36da1b3815853 /unix/tclUnixPipe.c
parent95199c5bd3068d26758129488d106f3c88f67fb6 (diff)
downloadtcl-71d29f51af72942fd0ff29013cd77a59cddbcbca.zip
tcl-71d29f51af72942fd0ff29013cd77a59cddbcbca.tar.gz
tcl-71d29f51af72942fd0ff29013cd77a59cddbcbca.tar.bz2
Silence compiler warnings.
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r--unix/tclUnixPipe.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c
index 448d19e..77d1f8b 100644
--- a/unix/tclUnixPipe.c
+++ b/unix/tclUnixPipe.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixPipe.c,v 1.24 2004/04/06 22:25:57 dgp Exp $
+ * RCS: @(#) $Id: tclUnixPipe.c,v 1.25 2004/06/08 19:18:39 dgp Exp $
*/
#include "tclInt.h"
@@ -659,14 +659,12 @@ SetupStdFile(file, type)
fcntl(targetFd, F_SETFD, 0);
} else {
- int result;
-
/*
* Since we aren't dup'ing the file, we need to explicitly clear
* the close-on-exec flag.
*/
- result = fcntl(fd, F_SETFD, 0);
+ fcntl(fd, F_SETFD, 0);
}
} else {
close(targetFd);