diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-12 10:52:43 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-12 10:52:43 (GMT) |
| commit | 44749c6a128f07704185326e3f8f445e675a8804 (patch) | |
| tree | 30b62317311000ba55de915764f435a79626c540 /unix/tclUnixPipe.c | |
| parent | ce55c537529a0e89770f1b22b760be8017ae313f (diff) | |
| parent | f4e00815317486febb5b02717230959f5dae9b12 (diff) | |
| download | tcl-44749c6a128f07704185326e3f8f445e675a8804.zip tcl-44749c6a128f07704185326e3f8f445e675a8804.tar.gz tcl-44749c6a128f07704185326e3f8f445e675a8804.tar.bz2 | |
Use "int fd" for file descriptors, like everywhere else in the code
Diffstat (limited to 'unix/tclUnixPipe.c')
| -rw-r--r-- | unix/tclUnixPipe.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c index 78bba4f..a61c083 100644 --- a/unix/tclUnixPipe.c +++ b/unix/tclUnixPipe.c @@ -844,7 +844,7 @@ TclpCreateCommandChannel( * background exec). */ { char channelName[16 + TCL_INTEGER_SPACE]; - int channelId; + int fd; PipeState *statePtr = (PipeState *)Tcl_Alloc(sizeof(PipeState)); int mode; @@ -868,13 +868,13 @@ TclpCreateCommandChannel( */ if (readFile) { - channelId = GetFd(readFile); + fd = GetFd(readFile); } else if (writeFile) { - channelId = GetFd(writeFile); + fd = GetFd(writeFile); } else if (errorFile) { - channelId = GetFd(errorFile); + fd = GetFd(errorFile); } else { - channelId = 0; + fd = 0; } /* @@ -883,7 +883,7 @@ TclpCreateCommandChannel( * natural to use "pipe%d". */ - snprintf(channelName, sizeof(channelName), "file%d", channelId); + snprintf(channelName, sizeof(channelName), "file%d", fd); statePtr->channel = Tcl_CreateChannel(&pipeChannelType, channelName, statePtr, mode); return statePtr->channel; |
