diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-10-10 16:47:01 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-10-10 16:47:01 +0300 |
commit | 825e859a9054bd91202e5723c41a17e72f63040a (patch) | |
tree | 4897e984924a0abb354caaf4c6dc9f6e33c47fa6 /src/lzmainfo | |
parent | lzmainfo: Use setmode() on DOS-like systems. (diff) | |
download | xz-825e859a9054bd91202e5723c41a17e72f63040a.tar.xz |
lzmainfo: Use fileno(stdin) instead of STDIN_FILENO.
Diffstat (limited to 'src/lzmainfo')
-rw-r--r-- | src/lzmainfo/lzmainfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lzmainfo/lzmainfo.c b/src/lzmainfo/lzmainfo.c index 8bd43af6..5f1d6798 100644 --- a/src/lzmainfo/lzmainfo.c +++ b/src/lzmainfo/lzmainfo.c @@ -177,7 +177,7 @@ main(int argc, char **argv) parse_args(argc, argv); #ifdef TUKLIB_DOSLIKE - setmode(STDIN_FILENO, O_BINARY); + setmode(fileno(stdin), O_BINARY); #endif int ret = EXIT_SUCCESS; |