summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-02-16 00:40:02 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-02-16 00:40:50 -0800
commit1c27b56095b4a82be7d072baabc09262cb4227e5 (patch)
tree116db7c0c9eec1c6321db7e079975f897554ea7c /src/wc.c
parenta24e9cc55c36f148639557767a39958683577b72 (diff)
downloadcoreutils-master.tar.xz
maint: xsetmode renamed to xbinary-ioHEADmaster
* bootstrap.conf, src/base64.c, src/cat.c, src/cksum.c: * src/head.c, src/md5sum.c, src/od.c, src/split.c, src/sum.c: * src/tac.c, src/tail.c, src/tee.c, src/tr.c, src/wc.c: Adjust to renaming of the xsetmode module to xbinary-io, and of the xsetmode function to xset_binary_mode.
Diffstat (limited to 'src/wc.c')
-rw-r--r--src/wc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wc.c b/src/wc.c
index a587b2ca4..be4f3062d 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -36,7 +36,7 @@
#include "readtokens0.h"
#include "safe-read.h"
#include "stat-size.h"
-#include "xsetmode.h"
+#include "xbinary-io.h"
#if !defined iswspace && !HAVE_ISWSPACE
# define iswspace(wc) \
@@ -556,7 +556,7 @@ wc_file (char const *file, struct fstatus *fstatus)
if (! file || STREQ (file, "-"))
{
have_read_stdin = true;
- xsetmode (STDIN_FILENO, O_BINARY);
+ xset_binary_mode (STDIN_FILENO, O_BINARY);
return wc (STDIN_FILENO, file, fstatus, -1);
}
else